mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Make the following changes in MipsAsmPrinter.cpp:
- Remove code which lowers pseudo SETGP01. - Fix LowerSETGP01. The first two of the three instructions that are emitted to initialize the global pointer register now use register $2. - Stop emitting .cpload directive. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4,8 +4,7 @@
|
||||
|
||||
define i32 @foo0(i32 %s) nounwind readonly {
|
||||
entry:
|
||||
; CHECK-NOT: addiu
|
||||
; CHECK: movn
|
||||
; CHECK: movn ${{[0-9]+}}, $zero
|
||||
%tobool = icmp ne i32 %s, 0
|
||||
%0 = load i32* @g1, align 4, !tbaa !0
|
||||
%cond = select i1 %tobool, i32 0, i32 %0
|
||||
@@ -14,8 +13,7 @@ entry:
|
||||
|
||||
define i32 @foo1(i32 %s) nounwind readonly {
|
||||
entry:
|
||||
; CHECK-NOT: addiu
|
||||
; CHECK: movz
|
||||
; CHECK: movz ${{[0-9]+}}, $zero
|
||||
%tobool = icmp ne i32 %s, 0
|
||||
%0 = load i32* @g1, align 4, !tbaa !0
|
||||
%cond = select i1 %tobool, i32 %0, i32 0
|
||||
|
Reference in New Issue
Block a user