mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
The test being performed is just an approximation anyway, so it really shouldn't crash when things don't go entirely as expected. Should fix PR20474. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214177 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
480 B
LLVM
18 lines
480 B
LLVM
; RUN: opt -S -codegenprepare -mtriple=arm64-apple-ios7.0 %s | FileCheck %s
|
|
|
|
%foo = type { i8 }
|
|
|
|
define %foo @test_merge(i32 %in) {
|
|
; CHECK-LABEL: @test_merge
|
|
|
|
; CodeGenPrepare was requesting the EVT for { i8 } to determine
|
|
; whether the insertvalue user of the trunc was legal. This
|
|
; asserted.
|
|
|
|
; CHECK: insertvalue %foo undef, i8 %byte, 0
|
|
%lobit = lshr i32 %in, 31
|
|
%byte = trunc i32 %lobit to i8
|
|
%struct = insertvalue %foo undef, i8 %byte, 0
|
|
ret %"foo" %struct
|
|
}
|