summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/2006-04-26-SetCCAnd.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-17 07:59:14 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-17 07:59:14 +0000
commit83b3d8267225d585678d5d3af9bba5735f4b415d (patch)
tree9d6c2ad7bfd568186e83a39e6f03e1c0bf415715 /llvm/test/CodeGen/Generic/2006-04-26-SetCCAnd.ll
parent100602d7561ca5e245db6194bddae86357d203d4 (diff)
downloadbcm5719-llvm-83b3d8267225d585678d5d3af9bba5735f4b415d.tar.gz
bcm5719-llvm-83b3d8267225d585678d5d3af9bba5735f4b415d.zip
Regression is gone, don't try to find it on clean target.
llvm-svn: 33296
Diffstat (limited to 'llvm/test/CodeGen/Generic/2006-04-26-SetCCAnd.ll')
-rw-r--r--llvm/test/CodeGen/Generic/2006-04-26-SetCCAnd.ll43
1 files changed, 43 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/2006-04-26-SetCCAnd.ll b/llvm/test/CodeGen/Generic/2006-04-26-SetCCAnd.ll
new file mode 100644
index 00000000000..2a424be94ec
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/2006-04-26-SetCCAnd.ll
@@ -0,0 +1,43 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc
+; PR748
+
+%G = external global ushort ; <ushort*> [#uses=1]
+
+implementation ; Functions:
+
+void %OmNewObjHdr() {
+entry:
+ br bool false, label %endif.4, label %then.0
+
+then.0: ; preds = %entry
+ ret void
+
+endif.4: ; preds = %entry
+ br bool false, label %else.3, label %shortcirc_next.3
+
+shortcirc_next.3: ; preds = %endif.4
+ ret void
+
+else.3: ; preds = %endif.4
+ switch int 0, label %endif.10 [
+ int 5001, label %then.10
+ int -5008, label %then.10
+ ]
+
+then.10: ; preds = %else.3, %else.3
+ %tmp.112 = load ushort* null ; <ushort> [#uses=2]
+ %tmp.113 = load ushort* %G ; <ushort> [#uses=2]
+ %tmp.114 = setgt ushort %tmp.112, %tmp.113 ; <bool> [#uses=1]
+ %tmp.120 = setlt ushort %tmp.112, %tmp.113 ; <bool> [#uses=1]
+ %bothcond = and bool %tmp.114, %tmp.120 ; <bool> [#uses=1]
+ br bool %bothcond, label %else.4, label %then.11
+
+then.11: ; preds = %then.10
+ ret void
+
+else.4: ; preds = %then.10
+ ret void
+
+endif.10: ; preds = %else.3
+ ret void
+}
OpenPOWER on IntegriCloud