[llvm] r318398 - [ARM GlobalISel] Add tests for BIC. NFC
Friedman, Eli via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 16 11:27:31 PST 2017
On 11/16/2017 5:32 AM, Diana Picus via llvm-commits wrote:
> Author: rovka
> Date: Thu Nov 16 05:32:47 2017
> New Revision: 318398
>
> URL: http://llvm.org/viewvc/llvm-project?rev=318398&view=rev
> Log:
> [ARM GlobalISel] Add tests for BIC. NFC
>
> +---
> +name: test_bicri_commutative_xor
> +# CHECK-LABEL: name: test_bicri_commutative_xor
> +legalized: true
> +regBankSelected: true
> +selected: false
> +# CHECK: selected: true
> +registers:
> + - { id: 0, class: gprb }
> + - { id: 1, class: gprb }
> + - { id: 2, class: gprb }
> + - { id: 3, class: gprb }
> + - { id: 4, class: gprb }
> +body: |
> + bb.0:
> + liveins: %r0
> +
> + %0(s32) = COPY %r0
> + ; CHECK: [[VREGX:%[0-9]+]]:gpr = COPY %r0
> +
> + %1(s32) = G_CONSTANT i32 192
> +
> + %2(s32) = G_CONSTANT i32 -1
> + %3(s32) = G_XOR %2, %1
> + %4(s32) = G_AND %0, %3
> + ; CHECK: [[VREGR:%[0-9]+]]:gpr = BICri [[VREGX]], 192, 14, _, _
This is a weird way to write this test. Why not just write "G_CONSTANT
i32 -193"?
-Eli
--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
More information about the llvm-commits
mailing list