aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-25 04:26:08 +0000
commit348c61831624e93741f08edec256ba20b94ba7b4 (patch)
treee662b3ee5539d7594ab49eda3eae140424ce499d /test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll
parent0013e453bf3652f7341a3ba1149ba173891c1c79 (diff)
downloadexternal_llvm-348c61831624e93741f08edec256ba20b94ba7b4.zip
external_llvm-348c61831624e93741f08edec256ba20b94ba7b4.tar.gz
external_llvm-348c61831624e93741f08edec256ba20b94ba7b4.tar.bz2
Byebye llvm-upgrade!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll')
-rw-r--r--test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll91
1 files changed, 43 insertions, 48 deletions
diff --git a/test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll b/test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll
index 6c34cd7..e1033c3 100644
--- a/test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll
+++ b/test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll
@@ -1,60 +1,55 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc32
+; END.
- %struct.attr_desc = type { sbyte*, %struct.attr_desc*, %struct.attr_value*, %struct.attr_value*, uint }
- %struct.attr_value = type { %struct.rtx_def*, %struct.attr_value*, %struct.insn_ent*, int, int }
- %struct.insn_def = type { %struct.insn_def*, %struct.rtx_def*, int, int, int, int, int }
+ %struct.attr_desc = type { i8*, %struct.attr_desc*, %struct.attr_value*, %struct.attr_value*, i32 }
+ %struct.attr_value = type { %struct.rtx_def*, %struct.attr_value*, %struct.insn_ent*, i32, i32 }
+ %struct.insn_def = type { %struct.insn_def*, %struct.rtx_def*, i32, i32, i32, i32, i32 }
%struct.insn_ent = type { %struct.insn_ent*, %struct.insn_def* }
- %struct.rtx_def = type { ushort, ubyte, ubyte, %struct.u }
- %struct.u = type { [1 x long] }
+ %struct.rtx_def = type { i16, i8, i8, %struct.u }
+ %struct.u = type { [1 x i64] }
-implementation ; Functions:
-
-void %find_attr() {
+define void @find_attr() {
entry:
- %tmp26 = seteq %struct.attr_desc* null, null ; <bool> [#uses=1]
- br bool %tmp26, label %bb30, label %cond_true27
-
+ %tmp26 = icmp eq %struct.attr_desc* null, null ; <i1> [#uses=1]
+ br i1 %tmp26, label %bb30, label %cond_true27
cond_true27: ; preds = %entry
ret void
-
bb30: ; preds = %entry
- %tmp67 = seteq %struct.attr_desc* null, null ; <bool> [#uses=1]
- br bool %tmp67, label %cond_next92, label %cond_true68
-
+ %tmp67 = icmp eq %struct.attr_desc* null, null ; <i1> [#uses=1]
+ br i1 %tmp67, label %cond_next92, label %cond_true68
cond_true68: ; preds = %bb30
ret void
-
cond_next92: ; preds = %bb30
- %tmp173 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; <uint*> [#uses=2]
- %tmp174 = load uint* %tmp173 ; <uint> [#uses=1]
- %tmp177 = and uint %tmp174, 4294967287 ; <uint> [#uses=1]
- store uint %tmp177, uint* %tmp173
- %tmp180 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; <uint*> [#uses=1]
- %tmp181 = load uint* %tmp180 ; <uint> [#uses=1]
- %tmp185 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; <uint*> [#uses=2]
- %tmp186 = load uint* %tmp185 ; <uint> [#uses=1]
- %tmp183187 = shl uint %tmp181, ubyte 1 ; <uint> [#uses=1]
- %tmp188 = and uint %tmp183187, 16 ; <uint> [#uses=1]
- %tmp190 = and uint %tmp186, 4294967279 ; <uint> [#uses=1]
- %tmp191 = or uint %tmp190, %tmp188 ; <uint> [#uses=1]
- store uint %tmp191, uint* %tmp185
- %tmp193 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; <uint*> [#uses=1]
- %tmp194 = load uint* %tmp193 ; <uint> [#uses=1]
- %tmp198 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; <uint*> [#uses=2]
- %tmp199 = load uint* %tmp198 ; <uint> [#uses=1]
- %tmp196200 = shl uint %tmp194, ubyte 2 ; <uint> [#uses=1]
- %tmp201 = and uint %tmp196200, 64 ; <uint> [#uses=1]
- %tmp203 = and uint %tmp199, 4294967231 ; <uint> [#uses=1]
- %tmp204 = or uint %tmp203, %tmp201 ; <uint> [#uses=1]
- store uint %tmp204, uint* %tmp198
- %tmp206 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; <uint*> [#uses=1]
- %tmp207 = load uint* %tmp206 ; <uint> [#uses=1]
- %tmp211 = getelementptr %struct.attr_desc* null, int 0, uint 4 ; <uint*> [#uses=2]
- %tmp212 = load uint* %tmp211 ; <uint> [#uses=1]
- %tmp209213 = shl uint %tmp207, ubyte 1 ; <uint> [#uses=1]
- %tmp214 = and uint %tmp209213, 128 ; <uint> [#uses=1]
- %tmp216 = and uint %tmp212, 4294967167 ; <uint> [#uses=1]
- %tmp217 = or uint %tmp216, %tmp214 ; <uint> [#uses=1]
- store uint %tmp217, uint* %tmp211
+ %tmp173 = getelementptr %struct.attr_desc* null, i32 0, i32 4 ; <i32*> [#uses=2]
+ %tmp174 = load i32* %tmp173 ; <i32> [#uses=1]
+ %tmp177 = and i32 %tmp174, -9 ; <i32> [#uses=1]
+ store i32 %tmp177, i32* %tmp173
+ %tmp180 = getelementptr %struct.attr_desc* null, i32 0, i32 4 ; <i32*> [#uses=1]
+ %tmp181 = load i32* %tmp180 ; <i32> [#uses=1]
+ %tmp185 = getelementptr %struct.attr_desc* null, i32 0, i32 4 ; <i32*> [#uses=2]
+ %tmp186 = load i32* %tmp185 ; <i32> [#uses=1]
+ %tmp183187 = shl i32 %tmp181, 1 ; <i32> [#uses=1]
+ %tmp188 = and i32 %tmp183187, 16 ; <i32> [#uses=1]
+ %tmp190 = and i32 %tmp186, -17 ; <i32> [#uses=1]
+ %tmp191 = or i32 %tmp190, %tmp188 ; <i32> [#uses=1]
+ store i32 %tmp191, i32* %tmp185
+ %tmp193 = getelementptr %struct.attr_desc* null, i32 0, i32 4 ; <i32*> [#uses=1]
+ %tmp194 = load i32* %tmp193 ; <i32> [#uses=1]
+ %tmp198 = getelementptr %struct.attr_desc* null, i32 0, i32 4 ; <i32*> [#uses=2]
+ %tmp199 = load i32* %tmp198 ; <i32> [#uses=1]
+ %tmp196200 = shl i32 %tmp194, 2 ; <i32> [#uses=1]
+ %tmp201 = and i32 %tmp196200, 64 ; <i32> [#uses=1]
+ %tmp203 = and i32 %tmp199, -65 ; <i32> [#uses=1]
+ %tmp204 = or i32 %tmp203, %tmp201 ; <i32> [#uses=1]
+ store i32 %tmp204, i32* %tmp198
+ %tmp206 = getelementptr %struct.attr_desc* null, i32 0, i32 4 ; <i32*> [#uses=1]
+ %tmp207 = load i32* %tmp206 ; <i32> [#uses=1]
+ %tmp211 = getelementptr %struct.attr_desc* null, i32 0, i32 4 ; <i32*> [#uses=2]
+ %tmp212 = load i32* %tmp211 ; <i32> [#uses=1]
+ %tmp209213 = shl i32 %tmp207, 1 ; <i32> [#uses=1]
+ %tmp214 = and i32 %tmp209213, 128 ; <i32> [#uses=1]
+ %tmp216 = and i32 %tmp212, -129 ; <i32> [#uses=1]
+ %tmp217 = or i32 %tmp216, %tmp214 ; <i32> [#uses=1]
+ store i32 %tmp217, i32* %tmp211
ret void
}