summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression/CodeGen
diff options
context:
space:
mode:
authorJim Laskey <jlaskey@mac.com>2006-06-13 15:22:49 +0000
committerJim Laskey <jlaskey@mac.com>2006-06-13 15:22:49 +0000
commita48a17632198a720c31605fce127fee98159dc00 (patch)
tree32b645584add469e65a786b6b8c452f36b779f96 /llvm/test/Regression/CodeGen
parentfe25b30c6dc34d41c7a0090fca59696d5f9d70eb (diff)
downloadbcm5719-llvm-a48a17632198a720c31605fce127fee98159dc00.tar.gz
bcm5719-llvm-a48a17632198a720c31605fce127fee98159dc00.zip
My original test case was bogus. Reverting to crasher case.
llvm-svn: 28767
Diffstat (limited to 'llvm/test/Regression/CodeGen')
-rw-r--r--llvm/test/Regression/CodeGen/Generic/2006-06-13-ComputeMaskedBitsCrash.ll81
1 files changed, 34 insertions, 47 deletions
diff --git a/llvm/test/Regression/CodeGen/Generic/2006-06-13-ComputeMaskedBitsCrash.ll b/llvm/test/Regression/CodeGen/Generic/2006-06-13-ComputeMaskedBitsCrash.ll
index 4b69386d887..5c5a1dc4e29 100644
--- a/llvm/test/Regression/CodeGen/Generic/2006-06-13-ComputeMaskedBitsCrash.ll
+++ b/llvm/test/Regression/CodeGen/Generic/2006-06-13-ComputeMaskedBitsCrash.ll
@@ -1,50 +1,37 @@
; RUN: llvm-as < %s | llc -fast
-uint %test1(uint %tmp1) {
- %tmp2 = or uint %tmp1, 2147483648
- %tmp3 = shr uint %tmp2, ubyte 31
- %tmp4 = and uint %tmp3, 2147483648
- %tmp5 = seteq uint %tmp4, 0
- br bool %tmp5, label %cond_true, label %cond_false
-
-cond_true:
- ret uint %tmp1
-
-cond_false:
-
- ret uint %tmp2
-}
-
-
-uint %test2(uint %tmp1) {
- %tmp2 = or uint %tmp1, 2147483648
- %tmp3 = cast uint %tmp2 to int
- %tmp4 = shr int %tmp3, ubyte 31
- %tmp5 = cast int %tmp4 to uint
- %tmp6 = and uint %tmp5, 2147483648
- %tmp7 = seteq uint %tmp6, 0
- br bool %tmp7, label %cond_true, label %cond_false
-
-cond_true:
- ret uint %tmp1
-
-cond_false:
-
- ret uint %tmp2
-}
-
-
-uint %test3(uint %tmp1) {
- %tmp2 = or uint %tmp1, 1
- %tmp3 = shl uint %tmp2, ubyte 31
- %tmp4 = and uint %tmp3, 1
- %tmp5 = seteq uint %tmp4, 0
- br bool %tmp5, label %cond_true, label %cond_false
-
-cond_true:
- ret uint %tmp1
-
-cond_false:
-
- ret uint %tmp2
+ %struct.cl_perfunc_opts = type { ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, int, int, int, int, int, int, int }
+%cl_pf_opts = external global %struct.cl_perfunc_opts ; <%struct.cl_perfunc_opts*> [#uses=2]
+
+implementation ; Functions:
+
+void %set_flags_from_O() {
+entry:
+ %tmp22 = setgt int 0, 0 ; <bool> [#uses=1]
+ br bool %tmp22, label %cond_true23, label %cond_next159
+
+cond_true23: ; preds = %entry
+ %tmp138 = getelementptr %struct.cl_perfunc_opts* %cl_pf_opts, int 0, uint 8 ; <ubyte*> [#uses=1]
+ %tmp138 = cast ubyte* %tmp138 to uint* ; <uint*> [#uses=2]
+ %tmp139 = load uint* %tmp138 ; <uint> [#uses=1]
+ %tmp140 = shl uint 1, ubyte 27 ; <uint> [#uses=1]
+ %tmp141 = and uint %tmp140, 134217728 ; <uint> [#uses=1]
+ %tmp142 = and uint %tmp139, 4160749567 ; <uint> [#uses=1]
+ %tmp143 = or uint %tmp142, %tmp141 ; <uint> [#uses=1]
+ store uint %tmp143, uint* %tmp138
+ %tmp144 = getelementptr %struct.cl_perfunc_opts* %cl_pf_opts, int 0, uint 8 ; <ubyte*> [#uses=1]
+ %tmp144 = cast ubyte* %tmp144 to uint* ; <uint*> [#uses=1]
+ %tmp145 = load uint* %tmp144 ; <uint> [#uses=1]
+ %tmp146 = shl uint %tmp145, ubyte 22 ; <uint> [#uses=1]
+ %tmp147 = shr uint %tmp146, ubyte 31 ; <uint> [#uses=1]
+ %tmp147 = cast uint %tmp147 to ubyte ; <ubyte> [#uses=1]
+ %tmp148 = seteq ubyte %tmp147, 0 ; <bool> [#uses=1]
+ br bool %tmp148, label %cond_true149, label %cond_next159
+
+cond_true149: ; preds = %cond_true23
+ %tmp150 = cast ubyte* null to uint* ; <uint*> [#uses=0]
+ ret void
+
+cond_next159: ; preds = %cond_true23, %entry
+ ret void
}
OpenPOWER on IntegriCloud