view test/CodeGen/Mips/micromips-directives.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 54457678186b
children
line wrap: on
line source

; This test checks if the '.set [no]micromips' directives
; are emitted before a function's entry label.

; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=+micromips %s -o - | \
; RUN:   FileCheck %s -check-prefix=CHECK-MM
; RUN: llc -mtriple mipsel-unknown-linux -mcpu=mips32r2 -mattr=-micromips %s -o - | \
; RUN:   FileCheck %s -check-prefix=CHECK-NO-MM

define i32 @main() nounwind {
entry:
  ret i32 0
}

; CHECK-MM: .set micromips
; CHECK-NO-MM: .set nomicromips
; CHECK: main: