1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

[InstSimplify] Add load of undef aggregate test (NFC)

To make sure this doesn't crash the following commit.
This commit is contained in:
Nikita Popov 2021-03-21 17:40:17 +01:00
parent d872e52c16
commit b3cc8585de

View File

@ -251,3 +251,13 @@ define i64 @test_array_of_zero_size_array() {
%v = load i64, i64* bitcast ([4294967295 x [0 x i32]]* @g9 to i64*)
ret i64 %v
}
@g10 = constant {i128} {i128 undef}
define i32* @test_undef_aggregate() {
; CHECK-LABEL: @test_undef_aggregate(
; CHECK-NEXT: ret i32* undef
;
%v = load i32*, i32** bitcast ({i128}* @g10 to i32**)
ret i32* %v
}