mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
[mips] Forbid the use of registers t6, t7 and t8 if the target is NaCl.
Differential Revision: http://llvm-reviews.chandlerc.com/D2694 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
; RUN: llc < %s -march=mipsel | FileCheck %s
|
||||
; RUN: llc < %s -mtriple=mipsel-none-nacl-gnu \
|
||||
; RUN: | FileCheck %s -check-prefix=CHECK-NACL
|
||||
|
||||
|
||||
@gi0 = external global i32
|
||||
@gi1 = external global i32
|
||||
@@ -95,6 +98,11 @@ entry:
|
||||
; CHECK: lw $5
|
||||
; CHECK: lw $4
|
||||
|
||||
; t6, t7 and t8 are reserved in NaCl and cannot be used for fastcc.
|
||||
; CHECK-NACL-NOT: lw $14
|
||||
; CHECK-NACL-NOT: lw $15
|
||||
; CHECK-NACL-NOT: lw $24
|
||||
|
||||
%0 = load i32* @gi0, align 4
|
||||
%1 = load i32* @gi1, align 4
|
||||
%2 = load i32* @gi2, align 4
|
||||
@@ -134,6 +142,11 @@ entry:
|
||||
; CHECK: sw $24
|
||||
; CHECK: sw $3
|
||||
|
||||
; t6, t7 and t8 are reserved in NaCl and cannot be used for fastcc.
|
||||
; CHECK-NACL-NOT: sw $14
|
||||
; CHECK-NACL-NOT: sw $15
|
||||
; CHECK-NACL-NOT: sw $24
|
||||
|
||||
store i32 %a0, i32* @g0, align 4
|
||||
store i32 %a1, i32* @g1, align 4
|
||||
store i32 %a2, i32* @g2, align 4
|
||||
|
||||
Reference in New Issue
Block a user