43 lines · plain
1# RUN: llc -O0 -run-pass=legalizer %s -o - | FileCheck %s2--- |3 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"4 target triple = "aarch64--"5 6 define void @test_anyext_crash() {7 entry:8 br label %block29 10 block2:11 %0 = trunc i16 0 to i812 %1 = uitofp i8 %0 to double13 br label %block214 }15 16 17...18---19name: test_anyext_crash20alignment: 421legalized: false22registers: 23 - { id: 0, class: _, preferred-register: '' }24 - { id: 1, class: _, preferred-register: '' }25 - { id: 2, class: _, preferred-register: '' }26body: |27 bb.1:28 ; Check we don't crash due to trying to legalize a dead instruction.29 ; CHECK-LABEL: test_anyext_crash30 ; CHECK-LABEL: bb.1:31 successors: %bb.232 33 %0(s16) = G_CONSTANT i16 034 35 bb.2:36 successors: %bb.237 38 %1(s8) = G_TRUNC %0(s16)39 %2(s64) = G_UITOFP %1(s8)40 G_BR %bb.241 42...43