diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-22 17:16:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-22 17:16:49 +0000 |
commit | 4c23c5b330e96fd445dd3a9e0d80e90b28c1994d (patch) | |
tree | 253e71e661eaa586290ad4cbec1f5afa7ed8a618 /test/CodeGen/IA64 | |
parent | ea966d714ff52a01872f24bac93bb343528fc7ca (diff) | |
download | external_llvm-4c23c5b330e96fd445dd3a9e0d80e90b28c1994d.zip external_llvm-4c23c5b330e96fd445dd3a9e0d80e90b28c1994d.tar.gz external_llvm-4c23c5b330e96fd445dd3a9e0d80e90b28c1994d.tar.bz2 |
Testcase for a crash in the legalizer on ia64. This is reduced from kc++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/IA64')
-rw-r--r-- | test/CodeGen/IA64/2005-08-22-LegalizerCrash.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/IA64/2005-08-22-LegalizerCrash.ll b/test/CodeGen/IA64/2005-08-22-LegalizerCrash.ll new file mode 100644 index 0000000..a4946a8 --- /dev/null +++ b/test/CodeGen/IA64/2005-08-22-LegalizerCrash.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llc -march=ia64 + +%_ZN9__gnu_cxx16__stl_prime_listE = external global [28 x uint] ; <[28 x uint]*> [#uses=3] + +implementation ; Functions: + +fastcc uint* %_ZSt11lower_boundIPKmmET_S2_S2_RKT0_(uint %__val.val) { +entry: + %retval = select bool setgt (int shr (int sub (int cast (uint* getelementptr ([28 x uint]* %_ZN9__gnu_cxx16__stl_prime_listE, int 0, int 28) to int), int cast ([28 x uint]* %_ZN9__gnu_cxx16__stl_prime_listE to int)), ubyte 2), int 0), uint* null, uint* getelementptr ([28 x uint]* %_ZN9__gnu_cxx16__stl_prime_listE, int 0, int 0) ; <uint*> [#uses=1] + ret uint* %retval +} |