[llvm] r311989 - [ARM] GlobalISel: Rename tests. NFC.
Diana Picus via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 29 02:00:59 PDT 2017
Author: rovka
Date: Tue Aug 29 02:00:58 2017
New Revision: 311989
URL: http://llvm.org/viewvc/llvm-project?rev=311989&view=rev
Log:
[ARM] GlobalISel: Rename tests. NFC.
The checks are complicated enough as it is, there's no use cramming PIC
in there as well...
Added:
llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals-static.ll
- copied, changed from r311987, llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll
llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-select-globals-static.mir
- copied, changed from r311987, llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir
Removed:
llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir
llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll
Removed: llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir?rev=311988&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir (original)
+++ llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir (removed)
@@ -1,71 +0,0 @@
-# RUN: llc -O0 -mtriple arm-linux -relocation-model=static -mattr=+no-movt -global-isel -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=CHECK,ELF-NOMOVT
-# RUN: llc -O0 -mtriple arm-linux -relocation-model=static -mattr=-no-movt,+v8m -global-isel -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=CHECK,ELF-MOVT
-# RUN: llc -O0 -mtriple arm-darwin -relocation-model=static -mattr=+no-movt -global-isel -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=CHECK,DARWIN-NOMOVT
-# RUN: llc -O0 -mtriple arm-darwin -relocation-model=static -mattr=-no-movt,+v8m -global-isel -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s -check-prefixes=CHECK,DARWIN-MOVT
---- |
- @internal_global = internal global i32 42
- define void @test_internal_global() { ret void }
-
- @external_global = external global i32
- define void @test_external_global() { ret void }
-...
----
-name: test_internal_global
-# CHECK-LABEL: name: test_internal_global
-legalized: true
-regBankSelected: true
-selected: false
-# CHECK: selected: true
-registers:
- - { id: 0, class: gprb }
- - { id: 1, class: gprb }
-# ELF-NOMOVT: constants:
-# ELF-NOMOVT: id: 0
-# ELF-NOMOVT: value: 'i32* @internal_global'
-body: |
- bb.0:
- %0(p0) = G_GLOBAL_VALUE @internal_global
- ; ELF-MOVT: [[G:%[0-9]+]] = MOVi32imm @internal_global
- ; ELF-NOMOVT: [[G:%[0-9]+]] = LDRi12 %const.0, 0, 14, _ :: (load 4 from constant-pool)
- ; DARWIN-MOVT: [[G:%[0-9]+]] = MOVi32imm @internal_global
- ; DARWIN-NOMOVT: [[G:%[0-9]+]] = LDRLIT_ga_abs @internal_global
-
- %1(s32) = G_LOAD %0(p0) :: (load 4 from @internal_global)
- ; CHECK: [[V:%[0-9]+]] = LDRi12 [[G]], 0, 14, _
-
- %r0 = COPY %1(s32)
- ; CHECK: %r0 = COPY [[V]]
-
- BX_RET 14, _, implicit %r0
- ; CHECK: BX_RET 14, _, implicit %r0
-...
----
-name: test_external_global
-# CHECK-LABEL: name: test_external_global
-legalized: true
-regBankSelected: true
-selected: false
-# CHECK: selected: true
-registers:
- - { id: 0, class: gprb }
- - { id: 1, class: gprb }
-# ELF-NOMOVT: constants:
-# ELF-NOMOVT: id: 0
-# ELF-NOMOVT: value: 'i32* @external_global'
-body: |
- bb.0:
- %0(p0) = G_GLOBAL_VALUE @external_global
- ; ELF-MOVT: [[G:%[0-9]+]] = MOVi32imm @external_global
- ; ELF-NOMOVT: [[G:%[0-9]+]] = LDRi12 %const.0, 0, 14, _ :: (load 4 from constant-pool)
- ; DARWIN-MOVT: [[G:%[0-9]+]] = MOVi32imm @external_global
- ; DARWIN-NOMOVT: [[G:%[0-9]+]] = LDRLIT_ga_abs @external_global
-
- %1(s32) = G_LOAD %0(p0) :: (load 4 from @external_global)
- ; CHECK: [[V:%[0-9]+]] = LDRi12 [[G]], 0, 14, _
-
- %r0 = COPY %1(s32)
- ; CHECK: %r0 = COPY [[V]]
-
- BX_RET 14, _, implicit %r0
- ; CHECK: BX_RET 14, _, implicit %r0
-...
Copied: llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals-static.ll (from r311987, llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals-static.ll?p2=llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals-static.ll&p1=llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll&r1=311987&r2=311989&rev=311989&view=diff
==============================================================================
(empty)
Removed: llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll?rev=311988&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-isel-globals.ll (removed)
@@ -1,50 +0,0 @@
-; RUN: llc -mtriple armv7-linux -relocation-model=static -global-isel %s -o - | FileCheck %s -check-prefixes=CHECK,ELF,ELF-MOVT
-; RUN: llc -mtriple armv7-linux -relocation-model=static -mattr=+no-movt -global-isel %s -o - | FileCheck %s -check-prefixes=CHECK,ELF,ELF-NOMOVT
-; RUN: llc -mtriple armv7-darwin -relocation-model=static -global-isel %s -o - | FileCheck %s -check-prefixes=CHECK,DARWIN,DARWIN-MOVT
-; RUN: llc -mtriple armv7-darwin -relocation-model=static -mattr=+no-movt -global-isel %s -o - | FileCheck %s -check-prefixes=CHECK,DARWIN,DARWIN-NOMOVT
-
- at internal_global = internal global i32 42
-define i32 @test_internal_global() {
-; CHECK-LABEL: test_internal_global:
-; ELF-MOVT: movw r[[ADDR:[0-9]+]], :lower16:internal_global
-; ELF-MOVT-NEXT: movt r[[ADDR]], :upper16:internal_global
-; ELF-NOMOVT: ldr r[[ADDR:[0-9]+]], [[LABEL:.L[[:alnum:]_]+]]
-; DARWIN-MOVT: movw r[[ADDR:[0-9]+]], :lower16:_internal_global
-; DARWIN-MOVT-NEXT: movt r[[ADDR]], :upper16:_internal_global
-; DARWIN-NOMOVT: ldr r[[ADDR:[0-9]+]], [[LABEL:L[[:alnum:]_]+]]
-; CHECK-NEXT: ldr r0, [r[[ADDR]]]
-; CHECK-NEXT: bx lr
-; ELF-NOMOVT: [[LABEL]]:
-; ELF-NOMOVT-NEXT: .long internal_global
-; DARWIN-NOMOVT: [[LABEL]]:
-; DARWIN-NOMOVT-NEXT: .long _internal_global
-
-entry:
- %v = load i32, i32* @internal_global
- ret i32 %v
-}
-
- at external_global = external global i32
-define i32 @test_external_global() {
-; CHECK-LABEL: test_external_global:
-; ELF-MOVT: movw r[[ADDR:[0-9]+]], :lower16:external_global
-; ELF-MOVT-NEXT: movt r[[ADDR]], :upper16:external_global
-; ELF-NOMOVT: ldr r[[ADDR:[0-9]+]], [[CONST_POOL:.L[[:alnum:]_]+]]
-; DARWIN-MOVT: movw r[[ADDR:[0-9]+]], :lower16:_external_global
-; DARWIN-MOVT: movt r[[ADDR]], :upper16:_external_global
-; DARWIN-NOMOVT: ldr r[[ADDR:[0-9]+]], [[LABEL:L[[:alnum:]_]+]]
-; CHECK-NEXT: ldr r0, [r[[ADDR]]]
-; CHECK-NEXT: bx lr
-; ELF-NOMOVT: [[CONST_POOL]]:
-; ELF-NOMOVT: .long external_global
-; DARWIN-NOMOVT: [[LABEL]]:
-; DARWIN-NOMOVT: .long _external_global
-entry:
- %v = load i32, i32* @external_global
- ret i32 %v
-}
-
-; ELF: internal_global:
-; DARWIN: _internal_global:
-; CHECK: .long 42
-; ELF: .size internal_global, 4
Copied: llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-select-globals-static.mir (from r311987, llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir)
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-select-globals-static.mir?p2=llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-select-globals-static.mir&p1=llvm/trunk/test/CodeGen/ARM/GlobalISel/arm-instruction-select-globals.mir&r1=311987&r2=311989&rev=311989&view=diff
==============================================================================
(empty)
More information about the llvm-commits
mailing list