summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/micromips-directives.ll
blob: dd0bd5836d28b8ba74b952e0fc80e99d0944339f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; 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: