mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Testcases for msasm bit (llvm-gcc 84062).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84063 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b1764b3f7
commit
0ccfc4c058
23
test/FrontendC++/msasm.cpp
Normal file
23
test/FrontendC++/msasm.cpp
Normal 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
23
test/FrontendC/msasm.c
Normal 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user