[PATCH] [mips] [IAS] Make .module directives change AssemblerOptions->front().
Toma Tabacu
toma.tabacu at imgtec.com
Tue Jun 23 03:41:01 PDT 2015
I was thinking of the following test:
# RUN: not llvm-mc %s -arch=mips -mcpu=mips32 -mattr=+fp64,-nooddspreg 2> %t0 | \
# RUN: FileCheck %s
.module nooddspreg
add.s $f1, $f2, $f4
# CHECK: :[[@LINE-1]]:15: error: -mno-odd-spreg prohibits the use of odd FPU registers
.set oddspreg
add.s $f1, $f2, $f4
# CHECK-NOT: :[[@LINE-1]]:15: error: -mno-odd-spreg prohibits the use of odd FPU registers
.set mips0
add.s $f1, $f2, $f4
# CHECK: :[[@LINE-1]]:15: error: -mno-odd-spreg prohibits the use of odd FPU registers
Currently, the last check should fail because AssemblerOptions->front() wasn't updated when we processed the ".module nooddspreg".
However, seeing as the IAS doesn't have support for .set oddspreg/nooddspreg, the only option left is to use .module/.set fp=23/64/xx, which I don't really know how to.
I would appreciate some help with this.
http://reviews.llvm.org/D10643
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list