summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarina Yatsina <marina.yatsina@intel.com>2017-06-26 16:09:55 +0000
committerMarina Yatsina <marina.yatsina@intel.com>2017-06-26 16:09:55 +0000
commit9f316db6ab5468c38b220cc59cc17547185e8a0c (patch)
tree499d1d80497158255b8be1ea5769f1c39588749f
parentf58dcb85d210fb948f01c4d14ed91ac2fe60565c (diff)
downloadbcm5719-llvm-9f316db6ab5468c38b220cc59cc17547185e8a0c.tar.gz
bcm5719-llvm-9f316db6ab5468c38b220cc59cc17547185e8a0c.zip
[inline asm] dot operator while using imm generates wrong ir + asm - clang part
Inline asm dot operator while using imm generates wrong ir and asm This is the test for the llvm changes committed in revision 306300 This also fixes bugzilla 32987: https://bugs.llvm.org//show_bug.cgi?id=32987 The llvm part of the review that contains the test can be found here: https://reviews.llvm.org/D33039 commit on behald of zizhar Differential Revision: https://reviews.llvm.org/D33040 llvm-svn: 306301
-rw-r--r--clang/test/CodeGen/ms-inline-asm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGen/ms-inline-asm.c b/clang/test/CodeGen/ms-inline-asm.c
index 5182d7f2e81..d26a660c9b0 100644
--- a/clang/test/CodeGen/ms-inline-asm.c
+++ b/clang/test/CodeGen/ms-inline-asm.c
@@ -627,6 +627,12 @@ void t43() {
// CHECK: call void asm sideeffect inteldialect "mov eax, $0", "*m,~{eax},~{dirflag},~{fpsr},~{flags}"(i32* %{{.*}})
}
+void dot_operator(){
+// CHECK-LABEL: define void @dot_operator
+ __asm { mov eax, 3[ebx]A.b}
+// CHECK: call void asm sideeffect inteldialect "mov eax, $$3[ebx].4", "~{eax},~{dirflag},~{fpsr},~{flags}"
+}
+
void call_clobber() {
__asm call t41
// CHECK-LABEL: define void @call_clobber
OpenPOWER on IntegriCloud