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

Phoebe Wang via cfe-commits cfe-commits at lists.llvm.org
Thu May 30 06:10:37 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:%.*]])
----------------
phoebewang wrote:

These can be put in one line now.

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


More information about the cfe-commits mailing list