summaryrefslogtreecommitdiff
path: root/test/Transforms/ConstProp/insertvalue.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ConstProp/insertvalue.ll')
-rw-r--r--test/Transforms/ConstProp/insertvalue.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/insertvalue.ll b/test/Transforms/ConstProp/insertvalue.ll
index dce2b728b93b0..606f7ddc679cd 100644
--- a/test/Transforms/ConstProp/insertvalue.ll
+++ b/test/Transforms/ConstProp/insertvalue.ll
@@ -74,3 +74,13 @@ define i32 @test-float-Nan() {
; CHECK: @test-float-Nan
; CHECK: ret i32 2139171423
}
+
+define i16 @test-half-Nan() {
+ %A = bitcast i16 32256 to half
+ %B = insertvalue [1 x half] undef, half %A, 0
+ %C = extractvalue [1 x half] %B, 0
+ %D = bitcast half %C to i16
+ ret i16 %D
+; CHECK: @test-half-Nan
+; CHECK: ret i16 32256
+}