mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
e6f281a2ff
Summary: When used, ".set nomacro" causes warning messages to be reported when we expand pseudo-instructions to multiple machine instructions. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9564 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237366 91177308-0d34-0410-b5e6-96231b3b80d8
47 lines
1.5 KiB
ArmAsm
47 lines
1.5 KiB
ArmAsm
# 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
|