diff options
Diffstat (limited to 'test/CodeGen/XCore')
-rw-r--r-- | test/CodeGen/XCore/fneg.ll | 4 | ||||
-rw-r--r-- | test/CodeGen/XCore/section-name.ll | 9 | ||||
-rw-r--r-- | test/CodeGen/XCore/varargs.ll | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/test/CodeGen/XCore/fneg.ll b/test/CodeGen/XCore/fneg.ll index 67ab6195aad2..20433da3bbe5 100644 --- a/test/CodeGen/XCore/fneg.ll +++ b/test/CodeGen/XCore/fneg.ll @@ -1,9 +1,9 @@ ; RUN: llc < %s -march=xcore | FileCheck %s -define i1 @test(double %F) nounwind { +define i1 @test(double %F, double %G) nounwind { entry: ; CHECK-LABEL: test: ; CHECK: xor %0 = fsub double -0.000000e+00, %F - %1 = fcmp olt double 0.000000e+00, %0 + %1 = fcmp olt double %G, %0 ret i1 %1 } diff --git a/test/CodeGen/XCore/section-name.ll b/test/CodeGen/XCore/section-name.ll new file mode 100644 index 000000000000..65161db34bea --- /dev/null +++ b/test/CodeGen/XCore/section-name.ll @@ -0,0 +1,9 @@ +; RUN: not llc < %s -march=xcore 2>&1 | FileCheck %s + +@bar = internal global i32 zeroinitializer + +define void @".dp.bss"() { + ret void +} + +; CHECK: LLVM ERROR: invalid symbol redefinition diff --git a/test/CodeGen/XCore/varargs.ll b/test/CodeGen/XCore/varargs.ll index 28c293390c59..2e364b275610 100644 --- a/test/CodeGen/XCore/varargs.ll +++ b/test/CodeGen/XCore/varargs.ll @@ -26,10 +26,10 @@ entry: ; CHECK-LABEL: test_vararg ; CHECK: extsp 6 ; CHECK: stw lr, sp[1] +; CHECK: stw r3, sp[6] ; CHECK: stw r0, sp[3] ; CHECK: stw r1, sp[4] ; CHECK: stw r2, sp[5] -; CHECK: stw r3, sp[6] ; CHECK: ldaw r0, sp[3] ; CHECK: stw r0, sp[2] %list = alloca i8*, align 4 |