Skip to content

Commit

Permalink
i#1569 AArch64: Fix drreg-test with double move to XZR.
Browse files Browse the repository at this point in the history
The code in drreg-test.dll.c expects the MSR instruction to be
immediately preceded by the two immediate moves of the subtest number.
We can easily arrange that by moving to the zero register, XZR.

Review-URL: https://codereview.appspot.com/306470043
  • Loading branch information
egrimley-arm committed Sep 13, 2016
1 parent 82dadac commit 932f8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions suite/tests/client-interface/drreg-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ GLOBAL_LABEL(FUNCNAME:)
b test5
/* Test 5: fault aflags restore */
test5:
movz TEST_REG_ASM, DRREG_TEST_5_ASM
movz TEST_REG_ASM, DRREG_TEST_5_ASM
movz TEST_REG_ASM, DRREG_TEST_AFLAGS_H_ASM, LSL 16
movz xzr, DRREG_TEST_5_ASM
movz xzr, DRREG_TEST_5_ASM
msr nzcv, TEST_REG_ASM
nop
mov x0, HEX(0)
Expand Down

0 comments on commit 932f8f4

Please sign in to comment.