39 lines · plain
1#RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -o - -global-isel -run-pass=none -verify-machineinstrs %s 2>&1 | FileCheck %s2 3---4name: test_bitcast5legalized: true6regBankSelected: false7selected: false8tracksRegLiveness: true9liveins:10body: |11 bb.0:12 ; CHECK: Bad machine code: bitcast cannot convert between pointers and other types13 %0:_(s64) = G_IMPLICIT_DEF14 %1:_(p0) = G_BITCAST %015 16 ; CHECK: Bad machine code: bitcast cannot convert between pointers and other17 %2:_(p0) = G_IMPLICIT_DEF18 %3:_(s64) = G_BITCAST %219 20 ; CHECK: Bad machine code: bitcast sizes must match21 %4:_(s32) = G_IMPLICIT_DEF22 %5:_(s64) = G_BITCAST %423 24 ; CHECK: Bad machine code: bitcast sizes must match25 %6:_(s32) = G_IMPLICIT_DEF26 %7:_(<3 x s8>) = G_BITCAST %627 28 ; CHECK: Bad machine code: bitcast sizes must match29 %8:_(p1) = G_IMPLICIT_DEF30 %9:_(p3) = G_BITCAST %831 32 ; CHECK: Bad machine code: bitcast sizes must match33 %10:_(p1) = G_IMPLICIT_DEF34 %11:_(p3) = G_BITCAST %835 36 ; CHECK: Bad machine code: bitcast must change the type37 %12:_(s64) = G_BITCAST %038...39