Add soft-float to the key for the subtarget lookup in the TargetMachine
authorEric Christopher <echristo@gmail.com>
Mon, 29 Sep 2014 21:57:54 +0000 (21:57 +0000)
committerEric Christopher <echristo@gmail.com>
Mon, 29 Sep 2014 21:57:54 +0000 (21:57 +0000)
commit6a2169eb6f41af89097638e6fd56380e8a7e45db
treee00aac73607c2c16386347aafbce191a4bb970ac
parent200f3764bf8abd4a4e8e3bb3b5d205c9838e5bfa
Add soft-float to the key for the subtarget lookup in the TargetMachine
map, this makes sure that we can compile the same code for two different
ABIs (hard and soft float) in the same module.

Update one testcase accordingly (and fix some confusing naming) and
add a new testcase as well with the ordering swapped which would
highlight the problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Mips/MipsTargetMachine.cpp
test/CodeGen/Mips/mips16-hf-attr-2.ll [new file with mode: 0644]
test/CodeGen/Mips/mips16-hf-attr.ll