• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: llvm-mc -arch=amdgcn -mcpu=bonaire %s | FileCheck %s --check-prefix=BONAIRE
2// RUN: llvm-mc -arch=amdgcn -mcpu=hawaii %s | FileCheck %s --check-prefix=HAWAII
3// RUN: llvm-mc -arch=amdgcn -mcpu=tonga %s | FileCheck %s --check-prefix=TONGA
4// RUN: llvm-mc -arch=amdgcn -mcpu=fiji %s | FileCheck %s --check-prefix=FIJI
5
6.if .option.machine_version_major == 0
7.byte 0
8.elseif .option.machine_version_major == 7
9.byte 7
10.elseif .option.machine_version_major == 8
11.byte 8
12.else
13.error "major unknown"
14.endif
15// BONAIRE: .byte 7
16// HAWAII: .byte 7
17// TONGA: .byte 8
18// FIJI: .byte 8
19
20.if .option.machine_version_minor == 0
21.byte 0
22.else
23.error "minor unknown"
24.endif
25// BONAIRE: .byte 0
26// HAWAII: .byte 0
27// TONGA: .byte 0
28// FIJI: .byte 0
29
30.if .option.machine_version_stepping == 0
31.byte 0
32.elseif .option.machine_version_stepping == 1
33.byte 1
34.elseif .option.machine_version_stepping == 3
35.byte 3
36.else
37.error "stepping unknown"
38.endif
39// BONAIRE: .byte 0
40// HAWAII: .byte 1
41// TONGA: .byte 0
42// FIJI: .byte 3
43
44v_add_f32 v0, v0, v[.option.machine_version_major]
45// BONAIRE: v_add_f32_e32 v0, v0, v7
46// HAWAII: v_add_f32_e32 v0, v0, v7
47// TONGA: v_add_f32_e32 v0, v0, v8
48// FIJI: v_add_f32_e32 v0, v0, v8
49