llvm-6502/test/CodeGen/Mips/brsize3a.ll
Eric Christopher 7a5d9c0611 Now that we have a soft-float attribute, use it instead of the
hard coded command line option for the Mips soft float tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236801 91177308-0d34-0410-b5e6-96231b3b80d8
2015-05-08 00:57:22 +00:00

27 lines
1014 B
LLVM

; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands < %s | FileCheck %s -check-prefix=b-short
; ModuleID = 'brsize3.c'
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32-S64"
target triple = "mips--linux-gnu"
; Function Attrs: noreturn nounwind optsize
define void @foo() #0 {
entry:
br label %x
x: ; preds = %x, %entry
tail call void asm sideeffect ".space 200", ""() #1, !srcloc !1
br label %x
; b-short: $BB0_1:
; b-short: #APP
; b-short: .space 200
; b-short: #NO_APP
; b-short: b $BB0_1 # 16 bit inst
}
attributes #0 = { noreturn nounwind optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
attributes #1 = { nounwind }
!1 = !{i32 45}