@@ -63,6 +63,7 @@ unsigned __int64 test__emulu(unsigned int a, unsigned int b) {
63
63
// CHECK: [[RES:%[0-9]+]] = mul nuw i64 [[Y]], [[X]]
64
64
// CHECK: ret i64 [[RES]]
65
65
66
+
66
67
int test_inp (unsigned short port ) {
67
68
return _inp (port );
68
69
}
@@ -91,24 +92,27 @@ int test_outp(unsigned short port, int data) {
91
92
return _outp (port , data );
92
93
}
93
94
// CHECK-LABEL: i32 @test_outp(
94
- // CHECK-SAME: [[PORT:%.*]], i32 noundef returned [[DATA:%.*]])
95
- // CHECK-NEXT: tail call void asm sideeffect "outb ${0:b}, ${1:w}", "{ax},N{dx},~{memory},~{dirflag},~{fpsr},~{flags}"(i32 [[DATA]], i16 [[PORT]]
95
+ // CHECK-SAME: [[PORT:%.*]],
96
+ // CHECK-SAME: [[DATA:%.*]])
97
+ // CHECK: tail call void asm sideeffect "outb ${0:b}, ${1:w}", "{ax},N{dx},~{dirflag},~{fpsr},~{flags}"(i32 [[DATA]], i16 [[PORT]])
96
98
// CHECK-NEXT: ret i32 [[DATA]]
97
99
98
100
unsigned short test_outpw (unsigned short port , unsigned short data ) {
99
101
return _outpw (port , data );
100
102
}
101
103
// CHECK-LABEL: i16 @test_outpw(
102
- // CHECK-SAME: [[PORT:%.*]], i16 noundef returned zeroext [[DATA:%.*]])
103
- // CHECK-NEXT: tail call void asm sideeffect "outw ${0:w}, ${1:w}", "{ax},N{dx},~{memory},~{dirflag},~{fpsr},~{flags}"(i16 [[DATA]], i16 [[PORT]])
104
+ // CHECK-SAME: [[PORT:%.*]],
105
+ // CHECK-SAME: [[DATA:%.*]])
106
+ // CHECK: tail call void asm sideeffect "outw ${0:w}, ${1:w}", "{ax},N{dx},~{dirflag},~{fpsr},~{flags}"(i16 [[DATA]], i16 [[PORT]])
104
107
// CHECK-NEXT: ret i16 [[DATA]]
105
108
106
109
unsigned long test_outpd (unsigned short port , unsigned long data ) {
107
110
return _outpd (port , data );
108
111
}
109
112
// CHECK-LABEL: i32 @test_outpd(
110
- // CHECK-SAME: [[PORT:%.*]], i32 noundef returned [[DATA:%.*]])
111
- // CHECK-NEXT: tail call void asm sideeffect "outl ${0:k}, ${1:w}", "{ax},N{dx},~{memory},~{dirflag},~{fpsr},~{flags}"(i32 [[DATA]], i16 [[PORT]])
113
+ // CHECK-SAME: [[PORT:%.*]],
114
+ // CHECK-SAME: [[DATA:%.*]])
115
+ // CHECK: tail call void asm sideeffect "outl ${0:k}, ${1:w}", "{ax},N{dx},~{dirflag},~{fpsr},~{flags}"(i32 [[DATA]], i16 [[PORT]])
112
116
// CHECK-NEXT: ret i32 [[DATA]]
113
117
114
118
#if defined(__x86_64__ )
0 commit comments