mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
InstCombine: Don't try to use aggregate elements of ConstantExprs.
PR18600. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200028 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,3 +16,11 @@ define void @test (float %b, <8 x float> * %p) {
|
||||
ret void
|
||||
}
|
||||
|
||||
; PR18600
|
||||
define i32 @test2(i32 %i) {
|
||||
%e = extractelement <4 x i32> bitcast (<2 x i64> <i64 1, i64 2> to <4 x i32>), i32 %i
|
||||
ret i32 %e
|
||||
|
||||
; CHECK-LABEL: @test2
|
||||
; CHECK: extractelement
|
||||
}
|
||||
|
Reference in New Issue
Block a user