From 658b061ecd4b358c6188eb6ece43ede2103bd722 Mon Sep 17 00:00:00 2001 From: Denis Drakhnia Date: Wed, 3 Jan 2024 14:44:52 +0200 Subject: [PATCH] asm/ct: invalid pred in prologue --- tests/asm/meson.build | 1 + tests/asm/sm/qual-ct-2.S | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/asm/sm/qual-ct-2.S diff --git a/tests/asm/meson.build b/tests/asm/meson.build index 0ad27d5..3a71765 100644 --- a/tests/asm/meson.build +++ b/tests/asm/meson.build @@ -155,6 +155,7 @@ asm_tests = { 'qual-4': {}, 'qual-call-1': { 'should_fail': true }, 'qual-ct-1': { 'should_fail': true }, + 'qual-ct-2': {}, 'qual-ibranch-1': { 'should_fail': true }, 'std-1': {}, 'udivs-1': { 'should_fail': true }, diff --git a/tests/asm/sm/qual-ct-2.S b/tests/asm/sm/qual-ct-2.S new file mode 100644 index 0000000..9622e8f --- /dev/null +++ b/tests/asm/sm/qual-ct-2.S @@ -0,0 +1,10 @@ +#include "test_start.S" + + disp %ctpr1, 0f + rwd,0 (1 << 48) | (1UL << 37) | 1, %lsr + invalid64 %g16 + cmpedb,0,sm 0, %g16, %pred0 + ct %ctpr1 ? %pred0 && #NOT_LOOP_END +0: + +#include "test_end.S"