aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/load2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/load2.ll')
-rw-r--r--test/Transforms/InstCombine/load2.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/load2.ll b/test/Transforms/InstCombine/load2.ll
new file mode 100644
index 0000000..611b0fb
--- /dev/null
+++ b/test/Transforms/InstCombine/load2.ll
@@ -0,0 +1,11 @@
+; RUN: opt < %s -instcombine -S | not grep load
+
+@GLOBAL = internal constant [4 x i32] zeroinitializer
+
+
+define <16 x i8> @foo(<2 x i64> %x) {
+entry:
+ %tmp = load <16 x i8> * bitcast ([4 x i32]* @GLOBAL to <16 x i8>*)
+ ret <16 x i8> %tmp
+}
+