From 0ccfc4c0581468832090464b92eba2085e9f5003 Mon Sep 17 00:00:00 2001 From: Dale Johannesen Date: Wed, 14 Oct 2009 00:10:54 +0000 Subject: [PATCH] Testcases for msasm bit (llvm-gcc 84062). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84063 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC++/msasm.cpp | 23 +++++++++++++++++++++++ test/FrontendC/msasm.c | 23 +++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 test/FrontendC++/msasm.cpp create mode 100644 test/FrontendC/msasm.c diff --git a/test/FrontendC++/msasm.cpp b/test/FrontendC++/msasm.cpp new file mode 100644 index 00000000000..18375bdf34f --- /dev/null +++ b/test/FrontendC++/msasm.cpp @@ -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 +} + diff --git a/test/FrontendC/msasm.c b/test/FrontendC/msasm.c new file mode 100644 index 00000000000..18375bdf34f --- /dev/null +++ b/test/FrontendC/msasm.c @@ -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 +} +