diff --git a/src/cmd/asm/internal/asm/endtoend_test.go b/src/cmd/asm/internal/asm/endtoend_test.go index 36aa4aedd8..7554a30b54 100644 --- a/src/cmd/asm/internal/asm/endtoend_test.go +++ b/src/cmd/asm/internal/asm/endtoend_test.go @@ -371,6 +371,10 @@ func TestARMEndToEnd(t *testing.T) { } } +func TestARMErrors(t *testing.T) { + testErrors(t, "arm", "armerror") +} + func TestARM64EndToEnd(t *testing.T) { testEndToEnd(t, "arm64", "arm64") } diff --git a/src/cmd/asm/internal/asm/testdata/arm.s b/src/cmd/asm/internal/asm/testdata/arm.s index 66fb207e3e..1e26075611 100644 --- a/src/cmd/asm/internal/asm/testdata/arm.s +++ b/src/cmd/asm/internal/asm/testdata/arm.s @@ -47,7 +47,7 @@ TEXT foo(SB), DUPOK|NOSPLIT, $0 // { // outcode($1, $2, &$3, 0, &$5); // } - CLZ.S R1, R2 + CLZ R1, R2 // // MOVW @@ -114,9 +114,9 @@ TEXT foo(SB), DUPOK|NOSPLIT, $0 // { // outcode($1, $2, &$3, $5, &nullgen); // } - CMP.S $1, R2 - CMP.S R1<