[llvm] r285844 - [AMDGPU][mc] Improve test of special asm symbols.

Artem Tamazov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 2 10:45:58 PDT 2016


Author: artem.tamazov
Date: Wed Nov  2 12:45:58 2016
New Revision: 285844

URL: http://llvm.org/viewvc/llvm-project?rev=285844&view=rev
Log:
[AMDGPU][mc] Improve test of special asm symbols.

Test simplified. Coverage extended.

Differential Revision: https://reviews.llvm.org/D26198

Modified:
    llvm/trunk/test/MC/AMDGPU/symbol_special.s

Modified: llvm/trunk/test/MC/AMDGPU/symbol_special.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AMDGPU/symbol_special.s?rev=285844&r1=285843&r2=285844&view=diff
==============================================================================
--- llvm/trunk/test/MC/AMDGPU/symbol_special.s (original)
+++ llvm/trunk/test/MC/AMDGPU/symbol_special.s Wed Nov  2 12:45:58 2016
@@ -1,50 +1,46 @@
+// RUN: llvm-mc -arch=amdgcn -mcpu=SI      %s | FileCheck %s --check-prefix=SI
 // RUN: llvm-mc -arch=amdgcn -mcpu=bonaire %s | FileCheck %s --check-prefix=BONAIRE
 // RUN: llvm-mc -arch=amdgcn -mcpu=hawaii %s | FileCheck %s --check-prefix=HAWAII
+// RUN: llvm-mc -arch=amdgcn -mcpu=kabini  %s | FileCheck %s --check-prefix=KABINI
+// RUN: llvm-mc -arch=amdgcn -mcpu=iceland %s | FileCheck %s --check-prefix=ICELAND
+// RUN: llvm-mc -arch=amdgcn -mcpu=carrizo %s | FileCheck %s --check-prefix=CARRIZO
 // RUN: llvm-mc -arch=amdgcn -mcpu=tonga %s | FileCheck %s --check-prefix=TONGA
 // RUN: llvm-mc -arch=amdgcn -mcpu=fiji %s | FileCheck %s --check-prefix=FIJI
+// RUN: llvm-mc -arch=amdgcn -mcpu=gfx804  %s | FileCheck %s --check-prefix=GFX804
+// RUN: llvm-mc -arch=amdgcn -mcpu=stoney  %s | FileCheck %s --check-prefix=STONEY
 
-.if .option.machine_version_major == 0
-.byte 0
-.elseif .option.machine_version_major == 7
-.byte 7
-.elseif .option.machine_version_major == 8
-.byte 8
-.else
-.error "major unknown"
-.endif
+.byte .option.machine_version_major
+// SI: .byte 0
 // BONAIRE: .byte 7
 // HAWAII: .byte 7
+// KABINI: .byte 7
+// ICELAND: .byte 8
+// CARRIZO: .byte 8
 // TONGA: .byte 8
 // FIJI: .byte 8
+// GFX804: .byte 8
+// STONEY: .byte 8
 
-.if .option.machine_version_minor == 0
-.byte 0
-.else
-.error "minor unknown"
-.endif
+.byte .option.machine_version_minor
+// SI: .byte 0
 // BONAIRE: .byte 0
 // HAWAII: .byte 0
+// KABINI: .byte 0
+// ICELAND: .byte 0
+// CARRIZO: .byte 0
 // TONGA: .byte 0
 // FIJI: .byte 0
+// GFX804: .byte 0
+// STONEY: .byte 1
 
-.if .option.machine_version_stepping == 0
-.byte 0
-.elseif .option.machine_version_stepping == 1
-.byte 1
-.elseif .option.machine_version_stepping == 2
-.byte 2
-.elseif .option.machine_version_stepping == 3
-.byte 3
-.else
-.error "stepping unknown"
-.endif
+.byte .option.machine_version_stepping
+// SI: .byte 0
 // BONAIRE: .byte 0
 // HAWAII: .byte 1
+// KABINI: .byte 2
+// ICELAND: .byte 0
+// CARRIZO: .byte 1
 // TONGA: .byte 2
 // FIJI: .byte 3
-
-v_add_f32 v0, v0, v[.option.machine_version_major]
-// BONAIRE: v_add_f32_e32 v0, v0, v7
-// HAWAII: v_add_f32_e32 v0, v0, v7
-// TONGA: v_add_f32_e32 v0, v0, v8
-// FIJI: v_add_f32_e32 v0, v0, v8
+// GFX804: .byte 4
+// STONEY: .byte 0




More information about the llvm-commits mailing list