summaryrefslogtreecommitdiff
path: root/test/Transforms/ConstantHoisting/X86/large-immediate.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ConstantHoisting/X86/large-immediate.ll')
-rw-r--r--test/Transforms/ConstantHoisting/X86/large-immediate.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/ConstantHoisting/X86/large-immediate.ll b/test/Transforms/ConstantHoisting/X86/large-immediate.ll
index bd7fa40e9c..e0af9c9be5 100644
--- a/test/Transforms/ConstantHoisting/X86/large-immediate.ll
+++ b/test/Transforms/ConstantHoisting/X86/large-immediate.ll
@@ -16,3 +16,12 @@ define i512 @test2(i512 %a) nounwind {
%2 = ashr i512 %1, 504
ret i512 %2
}
+
+; Check that we don't hoist constants with a type larger than i128.
+define i196 @test3(i196 %a) nounwind {
+; CHECK-LABEL: test3
+; CHECK-NOT: %const = bitcast i196 2 to i196
+ %1 = mul i196 %a, 2
+ %2 = mul i196 %1, 2
+ ret i196 %2
+}