1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Testcases for msasm bit (llvm-gcc 84062).

llvm-svn: 84063
This commit is contained in:
Dale Johannesen 2009-10-14 00:10:54 +00:00
parent 76221cc874
commit 5017c333d0
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,23 @@
// RUN: %llvmgcc %s -fasm-blocks -S -o - | FileCheck %s
// Complicated expression as jump target
// XFAIL: *
// XTARGET: x86,i386,i686
void Method3()
{
// CHECK: Method3
// CHECK-NOT: msasm
asm("foo:");
// CHECK: return
}
void Method4()
{
// CHECK: Method4
// CHECK: msasm
asm {
bar:
}
// CHECK: return
}

23
test/FrontendC/msasm.c Normal file
View File

@ -0,0 +1,23 @@
// RUN: %llvmgcc %s -fasm-blocks -S -o - | FileCheck %s
// Complicated expression as jump target
// XFAIL: *
// XTARGET: x86,i386,i686
void Method3()
{
// CHECK: Method3
// CHECK-NOT: msasm
asm("foo:");
// CHECK: return
}
void Method4()
{
// CHECK: Method4
// CHECK: msasm
asm {
bar:
}
// CHECK: return
}