mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-11 13:37:07 +00:00
b7e16242f5
The GAS assembler supports the ".set bopt" directive but according to the sources it doesn't do anything. It's supposed to optimize branches by filling the delay slot of a branch with it's target. This patch teaches the MIPS asm parser to accept both and warn in the case of 'bopt' that the bopt directive is unsupported. This resolves PR/31841. Thanks to Sean Bruno for reporting the issue! llvm-svn: 293798
17 lines
388 B
ArmAsm
17 lines
388 B
ArmAsm
# RUN: llvm-mc -arch=mips -mcpu=mips32 %s 2>&1 | FileCheck %s
|
|
|
|
# We don't support the bopt option in the integrated assembler. Given it's
|
|
# single pass nature, it would be quite difficult to implement currently.
|
|
|
|
# Ensure we parse the bopt & nobopt directives and warn in the bopt case.
|
|
|
|
# CHECK: warning: 'bopt' feature is unsupported
|
|
# CHECK: nop
|
|
.text
|
|
f:
|
|
.set bopt
|
|
g:
|
|
.set nobopt
|
|
nop
|
|
|