[clang] [X86] Add support for MS inp functions. (PR #93804)

Malay Sanghi via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 06:40:00 PDT 2024


================
@@ -63,6 +63,82 @@ unsigned __int64 test__emulu(unsigned int a, unsigned int b) {
 // CHECK: [[RES:%[0-9]+]] = mul nuw i64 [[Y]], [[X]]
 // CHECK: ret i64 [[RES]]
 
+
+int test_inp(unsigned short port) {
+  return _inp(port);
+}
+// CHECK-I386-LABEL: define dso_local i32 @test_inp(
+// CHECK-I386-SAME: i16 noundef zeroext [[PORT:%.*]])
----------------
MalaySanghi wrote:

No, I had tried that. A variable (PORT in this case) is not allowed in CHECK-LABEL

https://github.com/llvm/llvm-project/pull/93804


More information about the cfe-commits mailing list