[PowerPC] Support ".machine any"
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 9 Jul 2013 10:00:34 +0000 (10:00 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 9 Jul 2013 10:00:34 +0000 (10:00 +0000)
commitb2713e018e1c99bb9a65d2d2e63dc7e3e2222c57
tree8c8570e476719a6f08d9d1c7e79e86f5bb9b3785
parent9467b3e0ac593571a205041c129ed5ae11bf9d1f
[PowerPC] Support ".machine any"

The PowerPC assembler is supposed to provide a directive .machine
that allows switching the supported CPU instruction set on the fly.
Since we do not yet check CPU feature sets at all and always accept
any available instruction, this is not really useful at this point.

However, it makes sense to accept (and ignore) ".machine any" to
avoid spuriously rejecting existing assembler files that use this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185924 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
test/MC/PowerPC/ppc-machine.s [new file with mode: 0644]