mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-03 18:29:50 +00:00
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22982 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ca5693c51
commit
424dcbdb3b
@ -51,3 +51,23 @@ _foo:
|
|||||||
b .LBBl42__2E_expand_function_8_674 ; loopentry.24
|
b .LBBl42__2E_expand_function_8_674 ; loopentry.24
|
||||||
b .LBBl42__2E_expand_function_8_42 ; NewDefault
|
b .LBBl42__2E_expand_function_8_42 ; NewDefault
|
||||||
b .LBBl42__2E_expand_function_8_42 ; NewDefault
|
b .LBBl42__2E_expand_function_8_42 ; NewDefault
|
||||||
|
|
||||||
|
* Codegen this:
|
||||||
|
|
||||||
|
void test2(int X) {
|
||||||
|
if (X == 0x12345678) bar();
|
||||||
|
}
|
||||||
|
|
||||||
|
as:
|
||||||
|
|
||||||
|
xoris r0,r3,0x1234
|
||||||
|
cmpwi cr0,r0,0x5678
|
||||||
|
beq cr0,L6
|
||||||
|
|
||||||
|
not:
|
||||||
|
|
||||||
|
lis r2, 4660
|
||||||
|
ori r2, r2, 22136
|
||||||
|
cmpw cr0, r3, r2
|
||||||
|
bne .LBB_test2_2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user