[llvm-commits] CVS: llvm/test/Regression/CFrontend/2006-09-28-SimpleAsm.c
Chris Lattner
sabre at nondot.org
Thu Sep 28 11:58:18 PDT 2006
Changes in directory llvm/test/Regression/CFrontend:
2006-09-28-SimpleAsm.c added (r1.1)
---
Log message:
Testcase for PR924: http://llvm.org/PR924
---
Diffs of the changes: (+11 -0)
2006-09-28-SimpleAsm.c | 11 +++++++++++
1 files changed, 11 insertions(+)
Index: llvm/test/Regression/CFrontend/2006-09-28-SimpleAsm.c
diff -c /dev/null llvm/test/Regression/CFrontend/2006-09-28-SimpleAsm.c:1.1
*** /dev/null Thu Sep 28 13:58:12 2006
--- llvm/test/Regression/CFrontend/2006-09-28-SimpleAsm.c Thu Sep 28 13:58:02 2006
***************
*** 0 ****
--- 1,11 ----
+ // RUN: %llvmgcc %s -S -o /dev/null &&
+ // RUN: %llvmgcc %s -S -o - | grep 'ext: xorl %eax, eax; movl' &&
+ // RUN: %llvmgcc %s -S -o - | grep 'nonext: xorl %eax, %eax; mov'
+ // PR924
+
+ void bar() {
+ // Extended asm
+ asm volatile ("ext: xorl %%eax, eax; movl eax, fs; movl eax, gs %%blah %= %% " : : "r"(1));
+ // Non-extended asm.
+ asm volatile ("nonext: xorl %eax, %eax; movl %eax, %fs; movl %eax, %gs %%blah %= %% ");
+ }
More information about the llvm-commits
mailing list