1# RUN: llc -march=amdgcn -mcpu=hawaii -run-pass=none -o - %s | FileCheck -check-prefix=MCPU %s 2# RUN: llc -march=amdgcn -mattr=+unaligned-access-mode -run-pass=none -o - %s | FileCheck -check-prefix=MATTR %s 3 4# The command line arguments for -mcpu and -mattr should manifest themselves by adding the corresponding attributes to the stub IR function. 5 6# MCPU: attributes #0 = { "target-cpu"="hawaii" } 7# MATTR: attributes #0 = { "target-features"="+unaligned-access-mode" } 8 9--- 10name: no_ir 11legalized: true 12regBankSelected: true 13tracksRegLiveness: true 14 15body: | 16 bb.0: 17 liveins: $sgpr0, $sgpr1 18 19 %0:sgpr(s32) = COPY $sgpr0 20 %1:sgpr(s32) = COPY $sgpr1 21 %2:vgpr(s32) = G_OR %0, %1 22 S_ENDPGM 0, implicit %2 23... 24