aboutsummaryrefslogtreecommitdiff
path: root/test/MC/Mips/set-nomacro.s
blob: d81048ff12e14169a1ffa4bfdc343129f32c63c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# RUN: llvm-mc %s -arch=mips -mcpu=mips32 2>&1 | FileCheck %s

# CHECK-NOT: warning: macro instruction expanded into multiple instructions
  .set macro
  li  $8, -16
  li  $8, 16
  li  $8, 161616

  la  $8, 16
  la  $8, 161616
  la  $8, 16($9)
  la  $8, 161616($9)
  la  $8, symbol

  jal $25
  jal $4, $25

  add $4, $5, $6

  .set noreorder
  .set nomacro
  li  $8, -16
# CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
  li  $8, 16
# CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
  li  $8, 161616
# CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions

  la  $8, 16
# CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
  la  $8, 161616
# CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
  la  $8, 16($9)
# CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
  la  $8, 161616($9)
# CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
  la  $8, symbol
# CHECK: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions

  jal $25
# CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions
  jal $4, $25
# CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions

  add $4, $5, $6
# CHECK-NOT: [[@LINE-1]]:3: warning: macro instruction expanded into multiple instructions