aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-02 20:55:30 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-02 20:55:30 +0000
commitac9289deef6536e47b0da2c6d67d0a74e777b5a2 (patch)
tree9dd125cd6a821684e9e1b9e48a440f67144f295e
parent48d05e6d776f4b68f3db4016eb5680ac041c2b7d (diff)
[ms-inline asm] Fixup test case to be valid ms-style asm. Fix whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165045 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/ms-inline-asm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/CodeGen/ms-inline-asm.c b/test/CodeGen/ms-inline-asm.c
index 5d43163116..0eac11c20b 100644
--- a/test/CodeGen/ms-inline-asm.c
+++ b/test/CodeGen/ms-inline-asm.c
@@ -57,6 +57,7 @@ void t7() {
// CHECK: call void asm sideeffect inteldialect "int $$0x2c", "~{dirflag},~{fpsr},~{flags}"() nounwind
// CHECK: call void asm sideeffect inteldialect "", "~{dirflag},~{fpsr},~{flags}"() nounwind
}
+
int t8() {
__asm int 3 ; } comments for single-line asm
__asm {}
@@ -68,6 +69,7 @@ int t8() {
// CHECK: call void asm sideeffect inteldialect "int $$4", "~{dirflag},~{fpsr},~{flags}"() nounwind
// CHECK: ret i32 10
}
+
void t9() {
__asm {
push ebx
@@ -135,10 +137,10 @@ void t15(void) {
// CHECK: call void asm sideeffect inteldialect "mov eax, DWORD PTR [eax]", "~{eax},~{dirflag},~{fpsr},~{flags}"() nounwind
}
-void t16(unsigned long long V) {
+void t16(unsigned V) {
__asm mov eax, DWORD PTR [V]
// CHECK: t16
-// CHECK: call void asm sideeffect inteldialect "mov eax, DWORD PTR [$0]", "r,~{eax},~{dirflag},~{fpsr},~{flags}"(i64 %{{.*}}) nounwind
+// CHECK: call void asm sideeffect inteldialect "mov eax, DWORD PTR [$0]", "r,~{eax},~{dirflag},~{fpsr},~{flags}"(i32 %{{.*}}) nounwind
}
void t17(void) {