[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / Mips / cprestore-noreorder-noat.s
blobcba299eaf6abe65b997deb3f969f394bd751f7e6
1 # RUN: not llvm-mc %s -triple mips-unknown-linux-gnu -mcpu=mips32 \
2 # RUN: --position-independent -filetype=obj -o /dev/null 2>&1 \
3 # RUN: | FileCheck %s -check-prefix=O32
5 # RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj \
6 # RUN: -o /dev/null 2>&1 \
7 # RUN: | FileCheck %s -allow-empty -check-prefix=N64
9 # RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj \
10 # RUN: -o /dev/null 2>&1 \
11 # RUN: | FileCheck %s -allow-empty -check-prefix=N32
13 # RUN: llvm-mc %s -triple mips64-unknown-linux-gnuabin32 -filetype=obj -o - \
14 # RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=NO-STORE
16 # RUN: llvm-mc %s -triple mips64-unknown-linux-gnu -filetype=obj -o - \
17 # RUN: | llvm-objdump -d -r - | FileCheck %s -check-prefix=NO-STORE
19 .text
20 .ent foo
21 foo:
22 .frame $sp, 0, $ra
23 .set noreorder
24 .set noat
26 .cpload $25
27 .cprestore 8
28 # O32-NOT: error: pseudo-instruction requires $at, which is not available
29 # N32-NOT: error: pseudo-instruction requires $at, which is not available
30 # N64-NOT: error: pseudo-instruction requires $at, which is not available
31 # NO-STORE-NOT: sw $gp, 8($sp)
33 jal $25
34 jal $4, $25
35 jal foo
37 .end foo
39 .ent bar
40 bar:
41 .frame $sp, 0, $ra
42 .set noreorder
43 .set noat
45 .cpload $25
46 .cprestore 65536
47 # O32: :[[@LINE-1]]:3: error: pseudo-instruction requires $at, which is not available
48 # N32-NOT: error: pseudo-instruction requires $at, which is not available
49 # N64-NOT: error: pseudo-instruction requires $at, which is not available
50 # NO-STORE-NOT: sw $gp,
52 jal $25
53 jal $4, $25
54 jal bar
56 .end bar