diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-07-11 01:55:55 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-07-11 01:55:55 +0000 |
commit | 94383e542bf975cf747b1b6084ca12f28e022822 (patch) | |
tree | 07b514e0062c8d052f50e88194273d338495e8c2 /llvm/test/CodeGen/X86/nonconst-static-iv.ll | |
parent | bf22b96dd12b70383c184c4d53dc185693c2bde3 (diff) | |
download | bcm5719-llvm-94383e542bf975cf747b1b6084ca12f28e022822.tar.gz bcm5719-llvm-94383e542bf975cf747b1b6084ca12f28e022822.zip |
Move r186044 tests into CodeGen/X86
I had thought that these tests could be target-neutral, but in practice this is
not the case (on some targets, like Hexagon and Darwin), they trigger an assert
(a different assert than the one that r186044 fixes).
llvm-svn: 186051
Diffstat (limited to 'llvm/test/CodeGen/X86/nonconst-static-iv.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/nonconst-static-iv.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/nonconst-static-iv.ll b/llvm/test/CodeGen/X86/nonconst-static-iv.ll new file mode 100644 index 00000000000..8fad39bcbf7 --- /dev/null +++ b/llvm/test/CodeGen/X86/nonconst-static-iv.ll @@ -0,0 +1,9 @@ +; RUN: not llc -march=x86 -mtriple=x86_64-linux-gnu < %s 2> %t +; RUN: FileCheck --check-prefix=CHECK-ERRORS < %t %s +; REQUIRES: shell + +@0 = global i8 insertvalue( { i8 } select (i1 ptrtoint (i32* @1 to i1), { i8 } { i8 1 }, { i8 } { i8 2 }), i8 0, 0) +@1 = external global i32 + +; CHECK-ERRORS: Unsupported expression in static initializer: insertvalue + |