[GISel][UnitTest] Fix a bunch of tests that were not doing anything
authorQuentin Colombet <quentin.colombet@gmail.com>
Fri, 11 Oct 2019 20:58:26 +0000 (20:58 +0000)
committerQuentin Colombet <quentin.colombet@gmail.com>
Fri, 11 Oct 2019 20:58:26 +0000 (20:58 +0000)
commit49036dd3aef9265270dcf4bb645050510b68e183
tree6a23c66ee8d0212647aed850c8886e2639c32b4f
parent9bea4ec28cdf2a0b020e17b1999723b3e48eb088
[GISel][UnitTest] Fix a bunch of tests that were not doing anything

After r368065, all the tests using GISelMITest must call setUp() before
doing anything, otherwise the TargetMachine is not going to be set up.
A few tests added after that commit were not doing that and ended up
testing effectively nothing.

Fix the setup of all the tests and fix the failing tests.

llvm-svn: 374595
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
llvm/unittests/CodeGen/GlobalISel/MachineIRBuilderTest.cpp