diff options
author | Matan Haroush <matan.haroush@intel.com> | 2017-07-25 10:43:43 +0000 |
---|---|---|
committer | Matan Haroush <matan.haroush@intel.com> | 2017-07-25 10:43:43 +0000 |
commit | b4b8d1035565817fa083d16700d92b0053490dd4 (patch) | |
tree | a0502ef3316735bbf9ea757bf61a80884afb7235 /clang/test/CodeGenCXX/ms-inline-asm-return.cpp | |
parent | cd2255ea6a92b3601bca5aef7086e740cdb020ae (diff) | |
download | bcm5719-llvm-b4b8d1035565817fa083d16700d92b0053490dd4.tar.gz bcm5719-llvm-b4b8d1035565817fa083d16700d92b0053490dd4.zip |
This patch enables the usage of constant Enum identifiers within Microsoft style inline assembly statements.
Differential Revision:
https://reviews.llvm.org/D33277
https://reviews.llvm.org/D33278
llvm-svn: 308965
Diffstat (limited to 'clang/test/CodeGenCXX/ms-inline-asm-return.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/ms-inline-asm-return.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/ms-inline-asm-return.cpp b/clang/test/CodeGenCXX/ms-inline-asm-return.cpp index 51671c0bcda..837f1b437a4 100644 --- a/clang/test/CodeGenCXX/ms-inline-asm-return.cpp +++ b/clang/test/CodeGenCXX/ms-inline-asm-return.cpp @@ -70,7 +70,7 @@ FourChars f_s4() { } } // CHECK-LABEL: define i32 @f_s4() -// CHECK: %[[r:[^ ]*]] = call i32 asm sideeffect inteldialect "mov eax, $$0x01010101", "={eax},~{eax},{{.*}}" +// CHECK: %[[r:[^ ]*]] = call i32 asm sideeffect inteldialect "mov eax, $$16843009", "={eax},~{eax},{{.*}}" // CHECK: store i32 %[[r]], i32* %{{.*}} // CHECK: %[[r_i32:[^ ]*]] = load i32, i32* %{{.*}} // CHECK: ret i32 %[[r_i32]] @@ -85,7 +85,7 @@ EightChars f_s8() { } } // CHECK-LABEL: define i64 @f_s8() -// CHECK: %[[r:[^ ]*]] = call i64 asm sideeffect inteldialect "mov eax, $$01010101h\0A\09mov edx, $$01010101b", "=A,~{eax},{{.*}}" +// CHECK: %[[r:[^ ]*]] = call i64 asm sideeffect inteldialect "mov eax, $$16843009\0A\09mov edx, $$85", "=A,~{eax},{{.*}}" // CHECK: store i64 %[[r]], i64* %{{.*}} // CHECK: %[[r_i64:[^ ]*]] = load i64, i64* %{{.*}} // CHECK: ret i64 %[[r_i64]] |