test_with_self: # @test_with_self
test edi, edi
jne .LBB0_2
ret
.LBB0_2:
push rax
call abort@PLT
test_with_mask: # @test_with_mask
test esi, edi
jne .LBB1_2
ret
.LBB1_2:
push rax
call abort@PLT
test_js: # @test_js
test edi, edi
js .LBB2_2
ret
.LBB2_2:
push rax
call abort@PLT
test_jns: # @test_jns
test edi, edi
jns .LBB3_2
ret
.LBB3_2:
push rax
call abort@PLT
cmp_jz: # @cmp_jz
cmp edi, 42
je .LBB4_2
ret
.LBB4_2:
push rax
call abort@PLT
cmp_jnz: # @cmp_jnz
cmp edi, 42
jne .LBB5_2
ret
.LBB5_2:
push rax
call abort@PLT
1条答案
按热度按时间qybjjes11#
以下是一些例子:
以及它们可以呈现为(clang output):
注意
je
==jz
和jne
==jnz
。