aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/SCCP/bitcast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/SCCP/bitcast.ll')
-rw-r--r--test/Transforms/SCCP/bitcast.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/SCCP/bitcast.ll b/test/Transforms/SCCP/bitcast.ll
new file mode 100644
index 000000000000..285823512e57
--- /dev/null
+++ b/test/Transforms/SCCP/bitcast.ll
@@ -0,0 +1,9 @@
+; RUN: opt < %s -ipsccp -S | FileCheck %s
+
+define i128 @vector_to_int_cast() {
+ %A = bitcast <4 x i32> <i32 1073741824, i32 1073741824, i32 1073741824, i32 1073741824> to i128
+ ret i128 %A
+}
+
+; CHECK: define i128 @vector_to_int_cast(
+; CHECK-NEXT: ret i128 85070591750041656499021422275829170176