summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/binop-cast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstCombine/binop-cast.ll')
-rw-r--r--llvm/test/Transforms/InstCombine/binop-cast.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/binop-cast.ll b/llvm/test/Transforms/InstCombine/binop-cast.ll
new file mode 100644
index 00000000000..3dbca7ef148
--- /dev/null
+++ b/llvm/test/Transforms/InstCombine/binop-cast.ll
@@ -0,0 +1,9 @@
+; RUN: opt < %s -instcombine -S | FileCheck %s
+
+define i32 @testAdd(i32 %X, i32 %Y) {
+ %tmp = add i32 %X, %Y
+; CHECK: %tmp = add i32 %X, %Y
+ %tmp.l = bitcast i32 %tmp to i32
+ ret i32 %tmp.l
+; CHECK: ret i32 %tmp
+}
OpenPOWER on IntegriCloud