mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-09 10:05:41 +00:00
7f0125ba19
they can be better handled and optimized in the Mips16 constant island code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192520 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
735 B
LLVM
25 lines
735 B
LLVM
; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -relocation-model=pic -O3 < %s | FileCheck %s -check-prefix=16
|
|
|
|
@.str = private unnamed_addr constant [4 x i8] c"%i\0A\00", align 1
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
%call = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 1075344593) nounwind
|
|
; 16: lw ${{[0-9]+}}, 1f
|
|
; 16: b 2f
|
|
; 16: .align 2
|
|
; 16: 1: .word 1075344593
|
|
; 16: 2:
|
|
|
|
%call1 = tail call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str, i32 0, i32 0), i32 -1075344593) nounwind
|
|
|
|
; 16: lw ${{[0-9]+}}, 1f
|
|
; 16: b 2f
|
|
; 16: .align 2
|
|
; 16: 1: .word -1075344593
|
|
; 16: 2:
|
|
ret i32 0
|
|
}
|
|
|
|
declare i32 @printf(i8* nocapture, ...) nounwind
|