162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * arch/arm/kernel/kprobes-test-arm.c 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2011 Jon Medhurst <tixy@yxit.co.uk>. 662306a36Sopenharmony_ci */ 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#include <linux/kernel.h> 962306a36Sopenharmony_ci#include <linux/module.h> 1062306a36Sopenharmony_ci#include <asm/system_info.h> 1162306a36Sopenharmony_ci#include <asm/opcodes.h> 1262306a36Sopenharmony_ci#include <asm/probes.h> 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#include "test-core.h" 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define TEST_ISA "32" 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#define TEST_ARM_TO_THUMB_INTERWORK_R(code1, reg, val, code2) \ 2062306a36Sopenharmony_ci TESTCASE_START(code1 #reg code2) \ 2162306a36Sopenharmony_ci TEST_ARG_REG(reg, val) \ 2262306a36Sopenharmony_ci TEST_ARG_REG(14, 99f) \ 2362306a36Sopenharmony_ci TEST_ARG_END("") \ 2462306a36Sopenharmony_ci "50: nop \n\t" \ 2562306a36Sopenharmony_ci "1: "code1 #reg code2" \n\t" \ 2662306a36Sopenharmony_ci " bx lr \n\t" \ 2762306a36Sopenharmony_ci ".thumb \n\t" \ 2862306a36Sopenharmony_ci "3: adr lr, 2f \n\t" \ 2962306a36Sopenharmony_ci " bx lr \n\t" \ 3062306a36Sopenharmony_ci ".arm \n\t" \ 3162306a36Sopenharmony_ci "2: nop \n\t" \ 3262306a36Sopenharmony_ci TESTCASE_END 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci#define TEST_ARM_TO_THUMB_INTERWORK_P(code1, reg, val, code2) \ 3562306a36Sopenharmony_ci TESTCASE_START(code1 #reg code2) \ 3662306a36Sopenharmony_ci TEST_ARG_PTR(reg, val) \ 3762306a36Sopenharmony_ci TEST_ARG_REG(14, 99f) \ 3862306a36Sopenharmony_ci TEST_ARG_MEM(15, 3f+1) \ 3962306a36Sopenharmony_ci TEST_ARG_END("") \ 4062306a36Sopenharmony_ci "50: nop \n\t" \ 4162306a36Sopenharmony_ci "1: "code1 #reg code2" \n\t" \ 4262306a36Sopenharmony_ci " bx lr \n\t" \ 4362306a36Sopenharmony_ci ".thumb \n\t" \ 4462306a36Sopenharmony_ci "3: adr lr, 2f \n\t" \ 4562306a36Sopenharmony_ci " bx lr \n\t" \ 4662306a36Sopenharmony_ci ".arm \n\t" \ 4762306a36Sopenharmony_ci "2: nop \n\t" \ 4862306a36Sopenharmony_ci TESTCASE_END 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ci 5162306a36Sopenharmony_civoid kprobe_arm_test_cases(void) 5262306a36Sopenharmony_ci{ 5362306a36Sopenharmony_ci kprobe_test_flags = 0; 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci TEST_GROUP("Data-processing (register), (register-shifted register), (immediate)") 5662306a36Sopenharmony_ci 5762306a36Sopenharmony_ci#define _DATA_PROCESSING_DNM(op,s,val) \ 5862306a36Sopenharmony_ci TEST_RR( op s "eq r0, r",1, VAL1,", r",2, val, "") \ 5962306a36Sopenharmony_ci TEST_RR( op s "ne r1, r",1, VAL1,", r",2, val, ", lsl #3") \ 6062306a36Sopenharmony_ci TEST_RR( op s "cs r2, r",3, VAL1,", r",2, val, ", lsr #4") \ 6162306a36Sopenharmony_ci TEST_RR( op s "cc r3, r",3, VAL1,", r",2, val, ", asr #5") \ 6262306a36Sopenharmony_ci TEST_RR( op s "mi r4, r",5, VAL1,", r",2, N(val),", asr #6") \ 6362306a36Sopenharmony_ci TEST_RR( op s "pl r5, r",5, VAL1,", r",2, val, ", ror #7") \ 6462306a36Sopenharmony_ci TEST_RR( op s "vs r6, r",7, VAL1,", r",2, val, ", rrx") \ 6562306a36Sopenharmony_ci TEST_R( op s "vc r6, r",7, VAL1,", pc, lsl #3") \ 6662306a36Sopenharmony_ci TEST_R( op s "vc r6, r",7, VAL1,", sp, lsr #4") \ 6762306a36Sopenharmony_ci TEST_R( op s "vc r6, pc, r",7, VAL1,", asr #5") \ 6862306a36Sopenharmony_ci TEST_R( op s "vc r6, sp, r",7, VAL1,", ror #6") \ 6962306a36Sopenharmony_ci TEST_RRR( op s "hi r8, r",9, VAL1,", r",14,val, ", lsl r",0, 3,"")\ 7062306a36Sopenharmony_ci TEST_RRR( op s "ls r9, r",9, VAL1,", r",14,val, ", lsr r",7, 4,"")\ 7162306a36Sopenharmony_ci TEST_RRR( op s "ge r10, r",11,VAL1,", r",14,val, ", asr r",7, 5,"")\ 7262306a36Sopenharmony_ci TEST_RRR( op s "lt r11, r",11,VAL1,", r",14,N(val),", asr r",7, 6,"")\ 7362306a36Sopenharmony_ci TEST_RR( op s "gt r12, r13" ", r",14,val, ", ror r",14,7,"")\ 7462306a36Sopenharmony_ci TEST_RR( op s "le r14, r",0, val, ", r13" ", lsl r",14,8,"")\ 7562306a36Sopenharmony_ci TEST_R( op s "eq r0, r",11,VAL1,", #0xf5") \ 7662306a36Sopenharmony_ci TEST_R( op s "ne r11, r",0, VAL1,", #0xf5000000") \ 7762306a36Sopenharmony_ci TEST_R( op s " r7, r",8, VAL2,", #0x000af000") \ 7862306a36Sopenharmony_ci TEST( op s " r4, pc" ", #0x00005a00") 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ci#define DATA_PROCESSING_DNM(op,val) \ 8162306a36Sopenharmony_ci _DATA_PROCESSING_DNM(op,"",val) \ 8262306a36Sopenharmony_ci _DATA_PROCESSING_DNM(op,"s",val) 8362306a36Sopenharmony_ci 8462306a36Sopenharmony_ci#define DATA_PROCESSING_NM(op,val) \ 8562306a36Sopenharmony_ci TEST_RR( op "ne r",1, VAL1,", r",2, val, "") \ 8662306a36Sopenharmony_ci TEST_RR( op "eq r",1, VAL1,", r",2, val, ", lsl #3") \ 8762306a36Sopenharmony_ci TEST_RR( op "cc r",3, VAL1,", r",2, val, ", lsr #4") \ 8862306a36Sopenharmony_ci TEST_RR( op "cs r",3, VAL1,", r",2, val, ", asr #5") \ 8962306a36Sopenharmony_ci TEST_RR( op "pl r",5, VAL1,", r",2, N(val),", asr #6") \ 9062306a36Sopenharmony_ci TEST_RR( op "mi r",5, VAL1,", r",2, val, ", ror #7") \ 9162306a36Sopenharmony_ci TEST_RR( op "vc r",7, VAL1,", r",2, val, ", rrx") \ 9262306a36Sopenharmony_ci TEST_R ( op "vs r",7, VAL1,", pc, lsl #3") \ 9362306a36Sopenharmony_ci TEST_R ( op "vs r",7, VAL1,", sp, lsr #4") \ 9462306a36Sopenharmony_ci TEST_R( op "vs pc, r",7, VAL1,", asr #5") \ 9562306a36Sopenharmony_ci TEST_R( op "vs sp, r",7, VAL1,", ror #6") \ 9662306a36Sopenharmony_ci TEST_RRR( op "ls r",9, VAL1,", r",14,val, ", lsl r",0, 3,"") \ 9762306a36Sopenharmony_ci TEST_RRR( op "hi r",9, VAL1,", r",14,val, ", lsr r",7, 4,"") \ 9862306a36Sopenharmony_ci TEST_RRR( op "lt r",11,VAL1,", r",14,val, ", asr r",7, 5,"") \ 9962306a36Sopenharmony_ci TEST_RRR( op "ge r",11,VAL1,", r",14,N(val),", asr r",7, 6,"") \ 10062306a36Sopenharmony_ci TEST_RR( op "le r13" ", r",14,val, ", ror r",14,7,"") \ 10162306a36Sopenharmony_ci TEST_RR( op "gt r",0, val, ", r13" ", lsl r",14,8,"") \ 10262306a36Sopenharmony_ci TEST_R( op "eq r",11,VAL1,", #0xf5") \ 10362306a36Sopenharmony_ci TEST_R( op "ne r",0, VAL1,", #0xf5000000") \ 10462306a36Sopenharmony_ci TEST_R( op " r",8, VAL2,", #0x000af000") 10562306a36Sopenharmony_ci 10662306a36Sopenharmony_ci#define _DATA_PROCESSING_DM(op,s,val) \ 10762306a36Sopenharmony_ci TEST_R( op s "eq r0, r",1, val, "") \ 10862306a36Sopenharmony_ci TEST_R( op s "ne r1, r",1, val, ", lsl #3") \ 10962306a36Sopenharmony_ci TEST_R( op s "cs r2, r",3, val, ", lsr #4") \ 11062306a36Sopenharmony_ci TEST_R( op s "cc r3, r",3, val, ", asr #5") \ 11162306a36Sopenharmony_ci TEST_R( op s "mi r4, r",5, N(val),", asr #6") \ 11262306a36Sopenharmony_ci TEST_R( op s "pl r5, r",5, val, ", ror #7") \ 11362306a36Sopenharmony_ci TEST_R( op s "vs r6, r",10,val, ", rrx") \ 11462306a36Sopenharmony_ci TEST( op s "vs r7, pc, lsl #3") \ 11562306a36Sopenharmony_ci TEST( op s "vs r7, sp, lsr #4") \ 11662306a36Sopenharmony_ci TEST_RR( op s "vc r8, r",7, val, ", lsl r",0, 3,"") \ 11762306a36Sopenharmony_ci TEST_RR( op s "hi r9, r",9, val, ", lsr r",7, 4,"") \ 11862306a36Sopenharmony_ci TEST_RR( op s "ls r10, r",9, val, ", asr r",7, 5,"") \ 11962306a36Sopenharmony_ci TEST_RR( op s "ge r11, r",11,N(val),", asr r",7, 6,"") \ 12062306a36Sopenharmony_ci TEST_RR( op s "lt r12, r",11,val, ", ror r",14,7,"") \ 12162306a36Sopenharmony_ci TEST_R( op s "gt r14, r13" ", lsl r",14,8,"") \ 12262306a36Sopenharmony_ci TEST( op s "eq r0, #0xf5") \ 12362306a36Sopenharmony_ci TEST( op s "ne r11, #0xf5000000") \ 12462306a36Sopenharmony_ci TEST( op s " r7, #0x000af000") \ 12562306a36Sopenharmony_ci TEST( op s " r4, #0x00005a00") 12662306a36Sopenharmony_ci 12762306a36Sopenharmony_ci#define DATA_PROCESSING_DM(op,val) \ 12862306a36Sopenharmony_ci _DATA_PROCESSING_DM(op,"",val) \ 12962306a36Sopenharmony_ci _DATA_PROCESSING_DM(op,"s",val) 13062306a36Sopenharmony_ci 13162306a36Sopenharmony_ci DATA_PROCESSING_DNM("and",0xf00f00ff) 13262306a36Sopenharmony_ci DATA_PROCESSING_DNM("eor",0xf00f00ff) 13362306a36Sopenharmony_ci DATA_PROCESSING_DNM("sub",VAL2) 13462306a36Sopenharmony_ci DATA_PROCESSING_DNM("rsb",VAL2) 13562306a36Sopenharmony_ci DATA_PROCESSING_DNM("add",VAL2) 13662306a36Sopenharmony_ci DATA_PROCESSING_DNM("adc",VAL2) 13762306a36Sopenharmony_ci DATA_PROCESSING_DNM("sbc",VAL2) 13862306a36Sopenharmony_ci DATA_PROCESSING_DNM("rsc",VAL2) 13962306a36Sopenharmony_ci DATA_PROCESSING_NM("tst",0xf00f00ff) 14062306a36Sopenharmony_ci DATA_PROCESSING_NM("teq",0xf00f00ff) 14162306a36Sopenharmony_ci DATA_PROCESSING_NM("cmp",VAL2) 14262306a36Sopenharmony_ci DATA_PROCESSING_NM("cmn",VAL2) 14362306a36Sopenharmony_ci DATA_PROCESSING_DNM("orr",0xf00f00ff) 14462306a36Sopenharmony_ci DATA_PROCESSING_DM("mov",VAL2) 14562306a36Sopenharmony_ci DATA_PROCESSING_DNM("bic",0xf00f00ff) 14662306a36Sopenharmony_ci DATA_PROCESSING_DM("mvn",VAL2) 14762306a36Sopenharmony_ci 14862306a36Sopenharmony_ci TEST("mov ip, sp") /* This has special case emulation code */ 14962306a36Sopenharmony_ci 15062306a36Sopenharmony_ci TEST_SUPPORTED("mov pc, #0x1000"); 15162306a36Sopenharmony_ci TEST_SUPPORTED("mov sp, #0x1000"); 15262306a36Sopenharmony_ci TEST_SUPPORTED("cmp pc, #0x1000"); 15362306a36Sopenharmony_ci TEST_SUPPORTED("cmp sp, #0x1000"); 15462306a36Sopenharmony_ci 15562306a36Sopenharmony_ci /* Data-processing with PC and a shift count in a register */ 15662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe15c0f1e) " @ cmp r12, r14, asl pc") 15762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1a0cf1e) " @ mov r12, r14, asl pc") 15862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe08caf1e) " @ add r10, r12, r14, asl pc") 15962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe151021f) " @ cmp r1, pc, lsl r2") 16062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe17f0211) " @ cmn pc, r1, lsl r2") 16162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1a0121f) " @ mov r1, pc, lsl r2") 16262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1a0f211) " @ mov pc, r1, lsl r2") 16362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe042131f) " @ sub r1, r2, pc, lsl r3") 16462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1cf1312) " @ bic r1, pc, r2, lsl r3") 16562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe081f312) " @ add pc, r1, r2, lsl r3") 16662306a36Sopenharmony_ci 16762306a36Sopenharmony_ci /* Data-processing with PC as a target and status registers updated */ 16862306a36Sopenharmony_ci TEST_UNSUPPORTED("movs pc, r1") 16962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1b0f211) " @movs pc, r1, lsl r2") 17062306a36Sopenharmony_ci TEST_UNSUPPORTED("movs pc, #0x10000") 17162306a36Sopenharmony_ci TEST_UNSUPPORTED("adds pc, lr, r1") 17262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe09ef211) " @adds pc, lr, r1, lsl r2") 17362306a36Sopenharmony_ci TEST_UNSUPPORTED("adds pc, lr, #4") 17462306a36Sopenharmony_ci 17562306a36Sopenharmony_ci /* Data-processing with SP as target */ 17662306a36Sopenharmony_ci TEST("add sp, sp, #16") 17762306a36Sopenharmony_ci TEST("sub sp, sp, #8") 17862306a36Sopenharmony_ci TEST("bic sp, sp, #0x20") 17962306a36Sopenharmony_ci TEST("orr sp, sp, #0x20") 18062306a36Sopenharmony_ci TEST_PR( "add sp, r",10,0,", r",11,4,"") 18162306a36Sopenharmony_ci TEST_PRR("add sp, r",10,0,", r",11,4,", asl r",12,1,"") 18262306a36Sopenharmony_ci TEST_P( "mov sp, r",10,0,"") 18362306a36Sopenharmony_ci TEST_PR( "mov sp, r",10,0,", asl r",12,0,"") 18462306a36Sopenharmony_ci 18562306a36Sopenharmony_ci /* Data-processing with PC as target */ 18662306a36Sopenharmony_ci TEST_BF( "add pc, pc, #2f-1b-8") 18762306a36Sopenharmony_ci TEST_BF_R ("add pc, pc, r",14,2f-1f-8,"") 18862306a36Sopenharmony_ci TEST_BF_R ("add pc, r",14,2f-1f-8,", pc") 18962306a36Sopenharmony_ci TEST_BF_R ("mov pc, r",0,2f,"") 19062306a36Sopenharmony_ci TEST_BF_R ("add pc, pc, r",14,(2f-1f-8)*2,", asr #1") 19162306a36Sopenharmony_ci TEST_BB( "sub pc, pc, #1b-2b+8") 19262306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ == 6 && !defined(CONFIG_CPU_V7) 19362306a36Sopenharmony_ci TEST_BB( "sub pc, pc, #1b-2b+8-2") /* UNPREDICTABLE before and after ARMv6 */ 19462306a36Sopenharmony_ci#endif 19562306a36Sopenharmony_ci TEST_BB_R( "sub pc, pc, r",14, 1f-2f+8,"") 19662306a36Sopenharmony_ci TEST_BB_R( "rsb pc, r",14,1f-2f+8,", pc") 19762306a36Sopenharmony_ci TEST_R( "add pc, pc, r",10,-2,", asl #1") 19862306a36Sopenharmony_ci#ifdef CONFIG_THUMB2_KERNEL 19962306a36Sopenharmony_ci TEST_ARM_TO_THUMB_INTERWORK_R("add pc, pc, r",0,3f-1f-8+1,"") 20062306a36Sopenharmony_ci TEST_ARM_TO_THUMB_INTERWORK_R("sub pc, r",0,3f+8+1,", #8") 20162306a36Sopenharmony_ci#endif 20262306a36Sopenharmony_ci TEST_GROUP("Miscellaneous instructions") 20362306a36Sopenharmony_ci 20462306a36Sopenharmony_ci TEST_RMASKED("mrs r",0,~PSR_IGNORE_BITS,", cpsr") 20562306a36Sopenharmony_ci TEST_RMASKED("mrspl r",7,~PSR_IGNORE_BITS,", cpsr") 20662306a36Sopenharmony_ci TEST_RMASKED("mrs r",14,~PSR_IGNORE_BITS,", cpsr") 20762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe10ff000) " @ mrs r15, cpsr") 20862306a36Sopenharmony_ci TEST_UNSUPPORTED("mrs r0, spsr") 20962306a36Sopenharmony_ci TEST_UNSUPPORTED("mrs lr, spsr") 21062306a36Sopenharmony_ci 21162306a36Sopenharmony_ci TEST_UNSUPPORTED("msr cpsr, r0") 21262306a36Sopenharmony_ci TEST_UNSUPPORTED("msr cpsr_f, lr") 21362306a36Sopenharmony_ci TEST_UNSUPPORTED("msr spsr, r0") 21462306a36Sopenharmony_ci 21562306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 5 || \ 21662306a36Sopenharmony_ci (__LINUX_ARM_ARCH__ == 4 && !defined(CONFIG_CPU_32v4)) 21762306a36Sopenharmony_ci TEST_BF_R("bx r",0,2f,"") 21862306a36Sopenharmony_ci TEST_BB_R("bx r",7,2f,"") 21962306a36Sopenharmony_ci TEST_BF_R("bxeq r",14,2f,"") 22062306a36Sopenharmony_ci#endif 22162306a36Sopenharmony_ci 22262306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 5 22362306a36Sopenharmony_ci TEST_R("clz r0, r",0, 0x0,"") 22462306a36Sopenharmony_ci TEST_R("clzeq r7, r",14,0x1,"") 22562306a36Sopenharmony_ci TEST_R("clz lr, r",7, 0xffffffff,"") 22662306a36Sopenharmony_ci TEST( "clz r4, sp") 22762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x016fff10) " @ clz pc, r0") 22862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x016f0f1f) " @ clz r0, pc") 22962306a36Sopenharmony_ci 23062306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 23162306a36Sopenharmony_ci TEST_UNSUPPORTED("bxj r0") 23262306a36Sopenharmony_ci#endif 23362306a36Sopenharmony_ci 23462306a36Sopenharmony_ci TEST_BF_R("blx r",0,2f,"") 23562306a36Sopenharmony_ci TEST_BB_R("blx r",7,2f,"") 23662306a36Sopenharmony_ci TEST_BF_R("blxeq r",14,2f,"") 23762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x0120003f) " @ blx pc") 23862306a36Sopenharmony_ci 23962306a36Sopenharmony_ci TEST_RR( "qadd r0, r",1, VAL1,", r",2, VAL2,"") 24062306a36Sopenharmony_ci TEST_RR( "qaddvs lr, r",9, VAL2,", r",8, VAL1,"") 24162306a36Sopenharmony_ci TEST_R( "qadd lr, r",9, VAL2,", r13") 24262306a36Sopenharmony_ci TEST_RR( "qsub r0, r",1, VAL1,", r",2, VAL2,"") 24362306a36Sopenharmony_ci TEST_RR( "qsubvs lr, r",9, VAL2,", r",8, VAL1,"") 24462306a36Sopenharmony_ci TEST_R( "qsub lr, r",9, VAL2,", r13") 24562306a36Sopenharmony_ci TEST_RR( "qdadd r0, r",1, VAL1,", r",2, VAL2,"") 24662306a36Sopenharmony_ci TEST_RR( "qdaddvs lr, r",9, VAL2,", r",8, VAL1,"") 24762306a36Sopenharmony_ci TEST_R( "qdadd lr, r",9, VAL2,", r13") 24862306a36Sopenharmony_ci TEST_RR( "qdsub r0, r",1, VAL1,", r",2, VAL2,"") 24962306a36Sopenharmony_ci TEST_RR( "qdsubvs lr, r",9, VAL2,", r",8, VAL1,"") 25062306a36Sopenharmony_ci TEST_R( "qdsub lr, r",9, VAL2,", r13") 25162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe101f050) " @ qadd pc, r0, r1") 25262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe121f050) " @ qsub pc, r0, r1") 25362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe141f050) " @ qdadd pc, r0, r1") 25462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe161f050) " @ qdsub pc, r0, r1") 25562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe16f2050) " @ qdsub r2, r0, pc") 25662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe161205f) " @ qdsub r2, pc, r1") 25762306a36Sopenharmony_ci 25862306a36Sopenharmony_ci TEST_UNSUPPORTED("bkpt 0xffff") 25962306a36Sopenharmony_ci TEST_UNSUPPORTED("bkpt 0x0000") 26062306a36Sopenharmony_ci 26162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1600070) " @ smc #0") 26262306a36Sopenharmony_ci 26362306a36Sopenharmony_ci TEST_GROUP("Halfword multiply and multiply-accumulate") 26462306a36Sopenharmony_ci 26562306a36Sopenharmony_ci TEST_RRR( "smlabb r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 26662306a36Sopenharmony_ci TEST_RRR( "smlabbge r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 26762306a36Sopenharmony_ci TEST_RR( "smlabb lr, r",1, VAL2,", r",2, VAL3,", r13") 26862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe10f3281) " @ smlabb pc, r1, r2, r3") 26962306a36Sopenharmony_ci TEST_RRR( "smlatb r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 27062306a36Sopenharmony_ci TEST_RRR( "smlatbge r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 27162306a36Sopenharmony_ci TEST_RR( "smlatb lr, r",1, VAL2,", r",2, VAL3,", r13") 27262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe10f32a1) " @ smlatb pc, r1, r2, r3") 27362306a36Sopenharmony_ci TEST_RRR( "smlabt r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 27462306a36Sopenharmony_ci TEST_RRR( "smlabtge r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 27562306a36Sopenharmony_ci TEST_RR( "smlabt lr, r",1, VAL2,", r",2, VAL3,", r13") 27662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe10f32c1) " @ smlabt pc, r1, r2, r3") 27762306a36Sopenharmony_ci TEST_RRR( "smlatt r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 27862306a36Sopenharmony_ci TEST_RRR( "smlattge r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 27962306a36Sopenharmony_ci TEST_RR( "smlatt lr, r",1, VAL2,", r",2, VAL3,", r13") 28062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe10f32e1) " @ smlatt pc, r1, r2, r3") 28162306a36Sopenharmony_ci 28262306a36Sopenharmony_ci TEST_RRR( "smlawb r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 28362306a36Sopenharmony_ci TEST_RRR( "smlawbge r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 28462306a36Sopenharmony_ci TEST_RR( "smlawb lr, r",1, VAL2,", r",2, VAL3,", r13") 28562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe12f3281) " @ smlawb pc, r1, r2, r3") 28662306a36Sopenharmony_ci TEST_RRR( "smlawt r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 28762306a36Sopenharmony_ci TEST_RRR( "smlawtge r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 28862306a36Sopenharmony_ci TEST_RR( "smlawt lr, r",1, VAL2,", r",2, VAL3,", r13") 28962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe12f32c1) " @ smlawt pc, r1, r2, r3") 29062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe12032cf) " @ smlawt r0, pc, r2, r3") 29162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1203fc1) " @ smlawt r0, r1, pc, r3") 29262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe120f2c1) " @ smlawt r0, r1, r2, pc") 29362306a36Sopenharmony_ci 29462306a36Sopenharmony_ci TEST_RR( "smulwb r0, r",1, VAL1,", r",2, VAL2,"") 29562306a36Sopenharmony_ci TEST_RR( "smulwbge r7, r",8, VAL3,", r",9, VAL1,"") 29662306a36Sopenharmony_ci TEST_R( "smulwb lr, r",1, VAL2,", r13") 29762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe12f02a1) " @ smulwb pc, r1, r2") 29862306a36Sopenharmony_ci TEST_RR( "smulwt r0, r",1, VAL1,", r",2, VAL2,"") 29962306a36Sopenharmony_ci TEST_RR( "smulwtge r7, r",8, VAL3,", r",9, VAL1,"") 30062306a36Sopenharmony_ci TEST_R( "smulwt lr, r",1, VAL2,", r13") 30162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe12f02e1) " @ smulwt pc, r1, r2") 30262306a36Sopenharmony_ci 30362306a36Sopenharmony_ci TEST_RRRR( "smlalbb r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 30462306a36Sopenharmony_ci TEST_RRRR( "smlalbble r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 30562306a36Sopenharmony_ci TEST_RRR( "smlalbb r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 30662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe14f1382) " @ smlalbb pc, r1, r2, r3") 30762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe141f382) " @ smlalbb r1, pc, r2, r3") 30862306a36Sopenharmony_ci TEST_RRRR( "smlaltb r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 30962306a36Sopenharmony_ci TEST_RRRR( "smlaltble r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 31062306a36Sopenharmony_ci TEST_RRR( "smlaltb r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 31162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe14f13a2) " @ smlaltb pc, r1, r2, r3") 31262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe141f3a2) " @ smlaltb r1, pc, r2, r3") 31362306a36Sopenharmony_ci TEST_RRRR( "smlalbt r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 31462306a36Sopenharmony_ci TEST_RRRR( "smlalbtle r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 31562306a36Sopenharmony_ci TEST_RRR( "smlalbt r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 31662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe14f13c2) " @ smlalbt pc, r1, r2, r3") 31762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe141f3c2) " @ smlalbt r1, pc, r2, r3") 31862306a36Sopenharmony_ci TEST_RRRR( "smlaltt r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 31962306a36Sopenharmony_ci TEST_RRRR( "smlalttle r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 32062306a36Sopenharmony_ci TEST_RRR( "smlaltt r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 32162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe14f13e2) " @ smlalbb pc, r1, r2, r3") 32262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe140f3e2) " @ smlalbb r0, pc, r2, r3") 32362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe14013ef) " @ smlalbb r0, r1, pc, r3") 32462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1401fe2) " @ smlalbb r0, r1, r2, pc") 32562306a36Sopenharmony_ci 32662306a36Sopenharmony_ci TEST_RR( "smulbb r0, r",1, VAL1,", r",2, VAL2,"") 32762306a36Sopenharmony_ci TEST_RR( "smulbbge r7, r",8, VAL3,", r",9, VAL1,"") 32862306a36Sopenharmony_ci TEST_R( "smulbb lr, r",1, VAL2,", r13") 32962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe16f0281) " @ smulbb pc, r1, r2") 33062306a36Sopenharmony_ci TEST_RR( "smultb r0, r",1, VAL1,", r",2, VAL2,"") 33162306a36Sopenharmony_ci TEST_RR( "smultbge r7, r",8, VAL3,", r",9, VAL1,"") 33262306a36Sopenharmony_ci TEST_R( "smultb lr, r",1, VAL2,", r13") 33362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe16f02a1) " @ smultb pc, r1, r2") 33462306a36Sopenharmony_ci TEST_RR( "smulbt r0, r",1, VAL1,", r",2, VAL2,"") 33562306a36Sopenharmony_ci TEST_RR( "smulbtge r7, r",8, VAL3,", r",9, VAL1,"") 33662306a36Sopenharmony_ci TEST_R( "smulbt lr, r",1, VAL2,", r13") 33762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe16f02c1) " @ smultb pc, r1, r2") 33862306a36Sopenharmony_ci TEST_RR( "smultt r0, r",1, VAL1,", r",2, VAL2,"") 33962306a36Sopenharmony_ci TEST_RR( "smulttge r7, r",8, VAL3,", r",9, VAL1,"") 34062306a36Sopenharmony_ci TEST_R( "smultt lr, r",1, VAL2,", r13") 34162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe16f02e1) " @ smultt pc, r1, r2") 34262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe16002ef) " @ smultt r0, pc, r2") 34362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1600fe1) " @ smultt r0, r1, pc") 34462306a36Sopenharmony_ci#endif 34562306a36Sopenharmony_ci 34662306a36Sopenharmony_ci TEST_GROUP("Multiply and multiply-accumulate") 34762306a36Sopenharmony_ci 34862306a36Sopenharmony_ci TEST_RR( "mul r0, r",1, VAL1,", r",2, VAL2,"") 34962306a36Sopenharmony_ci TEST_RR( "mulls r7, r",8, VAL2,", r",9, VAL2,"") 35062306a36Sopenharmony_ci TEST_R( "mul lr, r",4, VAL3,", r13") 35162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe00f0291) " @ mul pc, r1, r2") 35262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe000029f) " @ mul r0, pc, r2") 35362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0000f91) " @ mul r0, r1, pc") 35462306a36Sopenharmony_ci TEST_RR( "muls r0, r",1, VAL1,", r",2, VAL2,"") 35562306a36Sopenharmony_ci TEST_RR( "mulsls r7, r",8, VAL2,", r",9, VAL2,"") 35662306a36Sopenharmony_ci TEST_R( "muls lr, r",4, VAL3,", r13") 35762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe01f0291) " @ muls pc, r1, r2") 35862306a36Sopenharmony_ci 35962306a36Sopenharmony_ci TEST_RRR( "mla r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 36062306a36Sopenharmony_ci TEST_RRR( "mlahi r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 36162306a36Sopenharmony_ci TEST_RR( "mla lr, r",1, VAL2,", r",2, VAL3,", r13") 36262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe02f3291) " @ mla pc, r1, r2, r3") 36362306a36Sopenharmony_ci TEST_RRR( "mlas r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 36462306a36Sopenharmony_ci TEST_RRR( "mlashi r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 36562306a36Sopenharmony_ci TEST_RR( "mlas lr, r",1, VAL2,", r",2, VAL3,", r13") 36662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe03f3291) " @ mlas pc, r1, r2, r3") 36762306a36Sopenharmony_ci 36862306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 36962306a36Sopenharmony_ci TEST_RR( "umaal r0, r1, r",2, VAL1,", r",3, VAL2,"") 37062306a36Sopenharmony_ci TEST_RR( "umaalls r7, r8, r",9, VAL2,", r",10, VAL1,"") 37162306a36Sopenharmony_ci TEST_R( "umaal lr, r12, r",11,VAL3,", r13") 37262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe041f392) " @ umaal pc, r1, r2, r3") 37362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe04f0392) " @ umaal r0, pc, r2, r3") 37462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0500090) " @ undef") 37562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe05fff9f) " @ undef") 37662306a36Sopenharmony_ci#endif 37762306a36Sopenharmony_ci 37862306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 37962306a36Sopenharmony_ci TEST_RRR( "mls r0, r",1, VAL1,", r",2, VAL2,", r",3, VAL3,"") 38062306a36Sopenharmony_ci TEST_RRR( "mlshi r7, r",8, VAL3,", r",9, VAL1,", r",10, VAL2,"") 38162306a36Sopenharmony_ci TEST_RR( "mls lr, r",1, VAL2,", r",2, VAL3,", r13") 38262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe06f3291) " @ mls pc, r1, r2, r3") 38362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe060329f) " @ mls r0, pc, r2, r3") 38462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0603f91) " @ mls r0, r1, pc, r3") 38562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe060f291) " @ mls r0, r1, r2, pc") 38662306a36Sopenharmony_ci#endif 38762306a36Sopenharmony_ci 38862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0700090) " @ undef") 38962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe07fff9f) " @ undef") 39062306a36Sopenharmony_ci 39162306a36Sopenharmony_ci TEST_RR( "umull r0, r1, r",2, VAL1,", r",3, VAL2,"") 39262306a36Sopenharmony_ci TEST_RR( "umullls r7, r8, r",9, VAL2,", r",10, VAL1,"") 39362306a36Sopenharmony_ci TEST_R( "umull lr, r12, r",11,VAL3,", r13") 39462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe081f392) " @ umull pc, r1, r2, r3") 39562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe08f1392) " @ umull r1, pc, r2, r3") 39662306a36Sopenharmony_ci TEST_RR( "umulls r0, r1, r",2, VAL1,", r",3, VAL2,"") 39762306a36Sopenharmony_ci TEST_RR( "umullsls r7, r8, r",9, VAL2,", r",10, VAL1,"") 39862306a36Sopenharmony_ci TEST_R( "umulls lr, r12, r",11,VAL3,", r13") 39962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe091f392) " @ umulls pc, r1, r2, r3") 40062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe09f1392) " @ umulls r1, pc, r2, r3") 40162306a36Sopenharmony_ci 40262306a36Sopenharmony_ci TEST_RRRR( "umlal r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 40362306a36Sopenharmony_ci TEST_RRRR( "umlalle r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 40462306a36Sopenharmony_ci TEST_RRR( "umlal r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 40562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0af1392) " @ umlal pc, r1, r2, r3") 40662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0a1f392) " @ umlal r1, pc, r2, r3") 40762306a36Sopenharmony_ci TEST_RRRR( "umlals r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 40862306a36Sopenharmony_ci TEST_RRRR( "umlalsle r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 40962306a36Sopenharmony_ci TEST_RRR( "umlals r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 41062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0bf1392) " @ umlals pc, r1, r2, r3") 41162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0b1f392) " @ umlals r1, pc, r2, r3") 41262306a36Sopenharmony_ci 41362306a36Sopenharmony_ci TEST_RR( "smull r0, r1, r",2, VAL1,", r",3, VAL2,"") 41462306a36Sopenharmony_ci TEST_RR( "smullls r7, r8, r",9, VAL2,", r",10, VAL1,"") 41562306a36Sopenharmony_ci TEST_R( "smull lr, r12, r",11,VAL3,", r13") 41662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0c1f392) " @ smull pc, r1, r2, r3") 41762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0cf1392) " @ smull r1, pc, r2, r3") 41862306a36Sopenharmony_ci TEST_RR( "smulls r0, r1, r",2, VAL1,", r",3, VAL2,"") 41962306a36Sopenharmony_ci TEST_RR( "smullsls r7, r8, r",9, VAL2,", r",10, VAL1,"") 42062306a36Sopenharmony_ci TEST_R( "smulls lr, r12, r",11,VAL3,", r13") 42162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0d1f392) " @ smulls pc, r1, r2, r3") 42262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0df1392) " @ smulls r1, pc, r2, r3") 42362306a36Sopenharmony_ci 42462306a36Sopenharmony_ci TEST_RRRR( "smlal r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 42562306a36Sopenharmony_ci TEST_RRRR( "smlalle r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 42662306a36Sopenharmony_ci TEST_RRR( "smlal r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 42762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0ef1392) " @ smlal pc, r1, r2, r3") 42862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0e1f392) " @ smlal r1, pc, r2, r3") 42962306a36Sopenharmony_ci TEST_RRRR( "smlals r",0, VAL1,", r",1, VAL2,", r",2, VAL3,", r",3, VAL4) 43062306a36Sopenharmony_ci TEST_RRRR( "smlalsle r",8, VAL4,", r",9, VAL1,", r",10,VAL2,", r",11,VAL3) 43162306a36Sopenharmony_ci TEST_RRR( "smlals r",14,VAL3,", r",7, VAL4,", r",5, VAL1,", r13") 43262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0ff1392) " @ smlals pc, r1, r2, r3") 43362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0f0f392) " @ smlals r0, pc, r2, r3") 43462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0f0139f) " @ smlals r0, r1, pc, r3") 43562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0f01f92) " @ smlals r0, r1, r2, pc") 43662306a36Sopenharmony_ci 43762306a36Sopenharmony_ci TEST_GROUP("Synchronization primitives") 43862306a36Sopenharmony_ci 43962306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ < 6 44062306a36Sopenharmony_ci TEST_RP("swp lr, r",7,VAL2,", [r",8,0,"]") 44162306a36Sopenharmony_ci TEST_R( "swpvs r0, r",1,VAL1,", [sp]") 44262306a36Sopenharmony_ci TEST_RP("swp sp, r",14,VAL2,", [r",12,13*4,"]") 44362306a36Sopenharmony_ci#else 44462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe108e097) " @ swp lr, r7, [r8]") 44562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x610d0091) " @ swpvs r0, r1, [sp]") 44662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe10cd09e) " @ swp sp, r14 [r12]") 44762306a36Sopenharmony_ci#endif 44862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe102f091) " @ swp pc, r1, [r2]") 44962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe102009f) " @ swp r0, pc, [r2]") 45062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe10f0091) " @ swp r0, r1, [pc]") 45162306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ < 6 45262306a36Sopenharmony_ci TEST_RP("swpb lr, r",7,VAL2,", [r",8,0,"]") 45362306a36Sopenharmony_ci TEST_R( "swpbvs r0, r",1,VAL1,", [sp]") 45462306a36Sopenharmony_ci#else 45562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe148e097) " @ swpb lr, r7, [r8]") 45662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x614d0091) " @ swpvsb r0, r1, [sp]") 45762306a36Sopenharmony_ci#endif 45862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe142f091) " @ swpb pc, r1, [r2]") 45962306a36Sopenharmony_ci 46062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1100090)) /* Unallocated space */ 46162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1200090)) /* Unallocated space */ 46262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1300090)) /* Unallocated space */ 46362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1500090)) /* Unallocated space */ 46462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1600090)) /* Unallocated space */ 46562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1700090)) /* Unallocated space */ 46662306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 46762306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrex r2, [sp]") 46862306a36Sopenharmony_ci#endif 46962306a36Sopenharmony_ci#if (__LINUX_ARM_ARCH__ >= 7) || defined(CONFIG_CPU_32v6K) 47062306a36Sopenharmony_ci TEST_UNSUPPORTED("strexd r0, r2, r3, [sp]") 47162306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrexd r2, r3, [sp]") 47262306a36Sopenharmony_ci TEST_UNSUPPORTED("strexb r0, r2, [sp]") 47362306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrexb r2, [sp]") 47462306a36Sopenharmony_ci TEST_UNSUPPORTED("strexh r0, r2, [sp]") 47562306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrexh r2, [sp]") 47662306a36Sopenharmony_ci#endif 47762306a36Sopenharmony_ci TEST_GROUP("Extra load/store instructions") 47862306a36Sopenharmony_ci 47962306a36Sopenharmony_ci TEST_RPR( "strh r",0, VAL1,", [r",1, 48,", -r",2, 24,"]") 48062306a36Sopenharmony_ci TEST_RPR( "strheq r",14,VAL2,", [r",11,0, ", r",12, 48,"]") 48162306a36Sopenharmony_ci TEST_UNSUPPORTED( "strheq r14, [r13, r12]") 48262306a36Sopenharmony_ci TEST_UNSUPPORTED( "strheq r14, [r12, r13]") 48362306a36Sopenharmony_ci TEST_RPR( "strh r",1, VAL1,", [r",2, 24,", r",3, 48,"]!") 48462306a36Sopenharmony_ci TEST_RPR( "strhne r",12,VAL2,", [r",11,48,", -r",10,24,"]!") 48562306a36Sopenharmony_ci TEST_RPR( "strh r",2, VAL1,", [r",3, 24,"], r",4, 48,"") 48662306a36Sopenharmony_ci TEST_RPR( "strh r",10,VAL2,", [r",9, 48,"], -r",11,24,"") 48762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1afc0ba) " @ strh r12, [pc, r10]!") 48862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe089f0bb) " @ strh pc, [r9], r11") 48962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe089a0bf) " @ strh r10, [r9], pc") 49062306a36Sopenharmony_ci 49162306a36Sopenharmony_ci TEST_PR( "ldrh r0, [r",0, 48,", -r",2, 24,"]") 49262306a36Sopenharmony_ci TEST_PR( "ldrhcs r14, [r",13,0, ", r",12, 48,"]") 49362306a36Sopenharmony_ci TEST_PR( "ldrh r1, [r",2, 24,", r",3, 48,"]!") 49462306a36Sopenharmony_ci TEST_PR( "ldrhcc r12, [r",11,48,", -r",10,24,"]!") 49562306a36Sopenharmony_ci TEST_PR( "ldrh r2, [r",3, 24,"], r",4, 48,"") 49662306a36Sopenharmony_ci TEST_PR( "ldrh r10, [r",9, 48,"], -r",11,24,"") 49762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1bfc0ba) " @ ldrh r12, [pc, r10]!") 49862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe099f0bb) " @ ldrh pc, [r9], r11") 49962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe099a0bf) " @ ldrh r10, [r9], pc") 50062306a36Sopenharmony_ci 50162306a36Sopenharmony_ci TEST_RP( "strh r",0, VAL1,", [r",1, 24,", #-2]") 50262306a36Sopenharmony_ci TEST_RP( "strhmi r",14,VAL2,", [r",13,0, ", #2]") 50362306a36Sopenharmony_ci TEST_RP( "strh r",1, VAL1,", [r",2, 24,", #4]!") 50462306a36Sopenharmony_ci TEST_RP( "strhpl r",12,VAL2,", [r",11,24,", #-4]!") 50562306a36Sopenharmony_ci TEST_RP( "strh r",2, VAL1,", [r",3, 24,"], #48") 50662306a36Sopenharmony_ci TEST_RP( "strh r",10,VAL2,", [r",9, 64,"], #-48") 50762306a36Sopenharmony_ci TEST_RP( "strh r",3, VAL1,", [r",13,TEST_MEMORY_SIZE,", #-"__stringify(MAX_STACK_SIZE)"]!") 50862306a36Sopenharmony_ci TEST_UNSUPPORTED("strh r3, [r13, #-"__stringify(MAX_STACK_SIZE)"-8]!") 50962306a36Sopenharmony_ci TEST_RP( "strh r",4, VAL1,", [r",14,TEST_MEMORY_SIZE,", #-"__stringify(MAX_STACK_SIZE)"-8]!") 51062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1efc3b0) " @ strh r12, [pc, #48]!") 51162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0c9f3b0) " @ strh pc, [r9], #48") 51262306a36Sopenharmony_ci 51362306a36Sopenharmony_ci TEST_P( "ldrh r0, [r",0, 24,", #-2]") 51462306a36Sopenharmony_ci TEST_P( "ldrhvs r14, [r",13,0, ", #2]") 51562306a36Sopenharmony_ci TEST_P( "ldrh r1, [r",2, 24,", #4]!") 51662306a36Sopenharmony_ci TEST_P( "ldrhvc r12, [r",11,24,", #-4]!") 51762306a36Sopenharmony_ci TEST_P( "ldrh r2, [r",3, 24,"], #48") 51862306a36Sopenharmony_ci TEST_P( "ldrh r10, [r",9, 64,"], #-48") 51962306a36Sopenharmony_ci TEST( "ldrh r0, [pc, #0]") 52062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1ffc3b0) " @ ldrh r12, [pc, #48]!") 52162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0d9f3b0) " @ ldrh pc, [r9], #48") 52262306a36Sopenharmony_ci 52362306a36Sopenharmony_ci TEST_PR( "ldrsb r0, [r",0, 48,", -r",2, 24,"]") 52462306a36Sopenharmony_ci TEST_PR( "ldrsbhi r14, [r",13,0,", r",12, 48,"]") 52562306a36Sopenharmony_ci TEST_PR( "ldrsb r1, [r",2, 24,", r",3, 48,"]!") 52662306a36Sopenharmony_ci TEST_PR( "ldrsbls r12, [r",11,48,", -r",10,24,"]!") 52762306a36Sopenharmony_ci TEST_PR( "ldrsb r2, [r",3, 24,"], r",4, 48,"") 52862306a36Sopenharmony_ci TEST_PR( "ldrsb r10, [r",9, 48,"], -r",11,24,"") 52962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1bfc0da) " @ ldrsb r12, [pc, r10]!") 53062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe099f0db) " @ ldrsb pc, [r9], r11") 53162306a36Sopenharmony_ci 53262306a36Sopenharmony_ci TEST_P( "ldrsb r0, [r",0, 24,", #-1]") 53362306a36Sopenharmony_ci TEST_P( "ldrsbge r14, [r",13,0, ", #1]") 53462306a36Sopenharmony_ci TEST_P( "ldrsb r1, [r",2, 24,", #4]!") 53562306a36Sopenharmony_ci TEST_P( "ldrsblt r12, [r",11,24,", #-4]!") 53662306a36Sopenharmony_ci TEST_P( "ldrsb r2, [r",3, 24,"], #48") 53762306a36Sopenharmony_ci TEST_P( "ldrsb r10, [r",9, 64,"], #-48") 53862306a36Sopenharmony_ci TEST( "ldrsb r0, [pc, #0]") 53962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1ffc3d0) " @ ldrsb r12, [pc, #48]!") 54062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0d9f3d0) " @ ldrsb pc, [r9], #48") 54162306a36Sopenharmony_ci 54262306a36Sopenharmony_ci TEST_PR( "ldrsh r0, [r",0, 48,", -r",2, 24,"]") 54362306a36Sopenharmony_ci TEST_PR( "ldrshgt r14, [r",13,0, ", r",12, 48,"]") 54462306a36Sopenharmony_ci TEST_PR( "ldrsh r1, [r",2, 24,", r",3, 48,"]!") 54562306a36Sopenharmony_ci TEST_PR( "ldrshle r12, [r",11,48,", -r",10,24,"]!") 54662306a36Sopenharmony_ci TEST_PR( "ldrsh r2, [r",3, 24,"], r",4, 48,"") 54762306a36Sopenharmony_ci TEST_PR( "ldrsh r10, [r",9, 48,"], -r",11,24,"") 54862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1bfc0fa) " @ ldrsh r12, [pc, r10]!") 54962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe099f0fb) " @ ldrsh pc, [r9], r11") 55062306a36Sopenharmony_ci 55162306a36Sopenharmony_ci TEST_P( "ldrsh r0, [r",0, 24,", #-1]") 55262306a36Sopenharmony_ci TEST_P( "ldrsheq r14, [r",13,0 ,", #1]") 55362306a36Sopenharmony_ci TEST_P( "ldrsh r1, [r",2, 24,", #4]!") 55462306a36Sopenharmony_ci TEST_P( "ldrshne r12, [r",11,24,", #-4]!") 55562306a36Sopenharmony_ci TEST_P( "ldrsh r2, [r",3, 24,"], #48") 55662306a36Sopenharmony_ci TEST_P( "ldrsh r10, [r",9, 64,"], #-48") 55762306a36Sopenharmony_ci TEST( "ldrsh r0, [pc, #0]") 55862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1ffc3f0) " @ ldrsh r12, [pc, #48]!") 55962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0d9f3f0) " @ ldrsh pc, [r9], #48") 56062306a36Sopenharmony_ci 56162306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 56262306a36Sopenharmony_ci TEST_UNSUPPORTED("strht r1, [r2], r3") 56362306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrht r1, [r2], r3") 56462306a36Sopenharmony_ci TEST_UNSUPPORTED("strht r1, [r2], #48") 56562306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrht r1, [r2], #48") 56662306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrsbt r1, [r2], r3") 56762306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrsbt r1, [r2], #48") 56862306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrsht r1, [r2], r3") 56962306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrsht r1, [r2], #48") 57062306a36Sopenharmony_ci#endif 57162306a36Sopenharmony_ci 57262306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 5 57362306a36Sopenharmony_ci TEST_RPR( "strd r",0, VAL1,", [r",1, 48,", -r",2,24,"]") 57462306a36Sopenharmony_ci TEST_RPR( "strdcc r",8, VAL2,", [r",11,0, ", r",12,48,"]") 57562306a36Sopenharmony_ci TEST_UNSUPPORTED( "strdcc r8, [r13, r12]") 57662306a36Sopenharmony_ci TEST_UNSUPPORTED( "strdcc r8, [r12, r13]") 57762306a36Sopenharmony_ci TEST_RPR( "strd r",4, VAL1,", [r",2, 24,", r",3, 48,"]!") 57862306a36Sopenharmony_ci TEST_RPR( "strdcs r",12,VAL2,", r13, [r",11,48,", -r",10,24,"]!") 57962306a36Sopenharmony_ci TEST_RPR( "strd r",2, VAL1,", r3, [r",5, 24,"], r",4,48,"") 58062306a36Sopenharmony_ci TEST_RPR( "strd r",10,VAL2,", r11, [r",9, 48,"], -r",7,24,"") 58162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1afc0fa) " @ strd r12, [pc, r10]!") 58262306a36Sopenharmony_ci 58362306a36Sopenharmony_ci TEST_PR( "ldrd r0, [r",0, 48,", -r",2,24,"]") 58462306a36Sopenharmony_ci TEST_PR( "ldrdmi r8, [r",13,0, ", r",12,48,"]") 58562306a36Sopenharmony_ci TEST_PR( "ldrd r4, [r",2, 24,", r",3, 48,"]!") 58662306a36Sopenharmony_ci TEST_PR( "ldrdpl r6, [r",11,48,", -r",10,24,"]!") 58762306a36Sopenharmony_ci TEST_PR( "ldrd r2, r3, [r",5, 24,"], r",4,48,"") 58862306a36Sopenharmony_ci TEST_PR( "ldrd r10, r11, [r",9,48,"], -r",7,24,"") 58962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1afc0da) " @ ldrd r12, [pc, r10]!") 59062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe089f0db) " @ ldrd pc, [r9], r11") 59162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe089e0db) " @ ldrd lr, [r9], r11") 59262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe089c0df) " @ ldrd r12, [r9], pc") 59362306a36Sopenharmony_ci 59462306a36Sopenharmony_ci TEST_RP( "strd r",0, VAL1,", [r",1, 24,", #-8]") 59562306a36Sopenharmony_ci TEST_RP( "strdvs r",8, VAL2,", [r",13,0, ", #8]") 59662306a36Sopenharmony_ci TEST_RP( "strd r",4, VAL1,", [r",2, 24,", #16]!") 59762306a36Sopenharmony_ci TEST_RP( "strdvc r",12,VAL2,", r13, [r",11,24,", #-16]!") 59862306a36Sopenharmony_ci TEST_RP( "strd r",2, VAL1,", [r",4, 24,"], #48") 59962306a36Sopenharmony_ci TEST_RP( "strd r",10,VAL2,", [r",9, 64,"], #-48") 60062306a36Sopenharmony_ci TEST_RP( "strd r",6, VAL1,", [r",13,TEST_MEMORY_SIZE,", #-"__stringify(MAX_STACK_SIZE)"]!") 60162306a36Sopenharmony_ci TEST_UNSUPPORTED("strd r6, [r13, #-"__stringify(MAX_STACK_SIZE)"-8]!") 60262306a36Sopenharmony_ci TEST_RP( "strd r",4, VAL1,", [r",12,TEST_MEMORY_SIZE,", #-"__stringify(MAX_STACK_SIZE)"-8]!") 60362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1efc3f0) " @ strd r12, [pc, #48]!") 60462306a36Sopenharmony_ci 60562306a36Sopenharmony_ci TEST_P( "ldrd r0, [r",0, 24,", #-8]") 60662306a36Sopenharmony_ci TEST_P( "ldrdhi r8, [r",13,0, ", #8]") 60762306a36Sopenharmony_ci TEST_P( "ldrd r4, [r",2, 24,", #16]!") 60862306a36Sopenharmony_ci TEST_P( "ldrdls r6, [r",11,24,", #-16]!") 60962306a36Sopenharmony_ci TEST_P( "ldrd r2, [r",5, 24,"], #48") 61062306a36Sopenharmony_ci TEST_P( "ldrd r10, [r",9,6,"], #-48") 61162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe1efc3d0) " @ ldrd r12, [pc, #48]!") 61262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0c9f3d0) " @ ldrd pc, [r9], #48") 61362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe0c9e3d0) " @ ldrd lr, [r9], #48") 61462306a36Sopenharmony_ci#endif 61562306a36Sopenharmony_ci 61662306a36Sopenharmony_ci TEST_GROUP("Miscellaneous") 61762306a36Sopenharmony_ci 61862306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 61962306a36Sopenharmony_ci TEST("movw r0, #0") 62062306a36Sopenharmony_ci TEST("movw r0, #0xffff") 62162306a36Sopenharmony_ci TEST("movw lr, #0xffff") 62262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe300f000) " @ movw pc, #0") 62362306a36Sopenharmony_ci TEST_R("movt r",0, VAL1,", #0") 62462306a36Sopenharmony_ci TEST_R("movt r",0, VAL2,", #0xffff") 62562306a36Sopenharmony_ci TEST_R("movt r",14,VAL1,", #0xffff") 62662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe340f000) " @ movt pc, #0") 62762306a36Sopenharmony_ci#endif 62862306a36Sopenharmony_ci 62962306a36Sopenharmony_ci TEST_UNSUPPORTED("msr cpsr, 0x13") 63062306a36Sopenharmony_ci TEST_UNSUPPORTED("msr cpsr_f, 0xf0000000") 63162306a36Sopenharmony_ci TEST_UNSUPPORTED("msr spsr, 0x13") 63262306a36Sopenharmony_ci 63362306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 63462306a36Sopenharmony_ci TEST_SUPPORTED("yield") 63562306a36Sopenharmony_ci TEST("sev") 63662306a36Sopenharmony_ci TEST("nop") 63762306a36Sopenharmony_ci TEST("wfi") 63862306a36Sopenharmony_ci TEST_SUPPORTED("wfe") 63962306a36Sopenharmony_ci TEST_UNSUPPORTED("dbg #0") 64062306a36Sopenharmony_ci#endif 64162306a36Sopenharmony_ci 64262306a36Sopenharmony_ci TEST_GROUP("Load/store word and unsigned byte") 64362306a36Sopenharmony_ci 64462306a36Sopenharmony_ci#define LOAD_STORE(byte) \ 64562306a36Sopenharmony_ci TEST_RP( "str"byte" r",0, VAL1,", [r",1, 24,", #-2]") \ 64662306a36Sopenharmony_ci TEST_RP( "str"byte" r",14,VAL2,", [r",13,0, ", #2]") \ 64762306a36Sopenharmony_ci TEST_RP( "str"byte" r",1, VAL1,", [r",2, 24,", #4]!") \ 64862306a36Sopenharmony_ci TEST_RP( "str"byte" r",12,VAL2,", [r",11,24,", #-4]!") \ 64962306a36Sopenharmony_ci TEST_RP( "str"byte" r",2, VAL1,", [r",3, 24,"], #48") \ 65062306a36Sopenharmony_ci TEST_RP( "str"byte" r",10,VAL2,", [r",9, 64,"], #-48") \ 65162306a36Sopenharmony_ci TEST_RP( "str"byte" r",3, VAL1,", [r",13,TEST_MEMORY_SIZE,", #-"__stringify(MAX_STACK_SIZE)"]!") \ 65262306a36Sopenharmony_ci TEST_UNSUPPORTED("str"byte" r3, [r13, #-"__stringify(MAX_STACK_SIZE)"-8]!") \ 65362306a36Sopenharmony_ci TEST_RP( "str"byte" r",4, VAL1,", [r",10,TEST_MEMORY_SIZE,", #-"__stringify(MAX_STACK_SIZE)"-8]!") \ 65462306a36Sopenharmony_ci TEST_RPR("str"byte" r",0, VAL1,", [r",1, 48,", -r",2, 24,"]") \ 65562306a36Sopenharmony_ci TEST_RPR("str"byte" r",14,VAL2,", [r",11,0, ", r",12, 48,"]") \ 65662306a36Sopenharmony_ci TEST_UNSUPPORTED("str"byte" r14, [r13, r12]") \ 65762306a36Sopenharmony_ci TEST_UNSUPPORTED("str"byte" r14, [r12, r13]") \ 65862306a36Sopenharmony_ci TEST_RPR("str"byte" r",1, VAL1,", [r",2, 24,", r",3, 48,"]!") \ 65962306a36Sopenharmony_ci TEST_RPR("str"byte" r",12,VAL2,", [r",11,48,", -r",10,24,"]!") \ 66062306a36Sopenharmony_ci TEST_RPR("str"byte" r",2, VAL1,", [r",3, 24,"], r",4, 48,"") \ 66162306a36Sopenharmony_ci TEST_RPR("str"byte" r",10,VAL2,", [r",9, 48,"], -r",11,24,"") \ 66262306a36Sopenharmony_ci TEST_RPR("str"byte" r",0, VAL1,", [r",1, 24,", r",2, 32,", asl #1]")\ 66362306a36Sopenharmony_ci TEST_RPR("str"byte" r",14,VAL2,", [r",11,0, ", r",12, 32,", lsr #2]")\ 66462306a36Sopenharmony_ci TEST_UNSUPPORTED("str"byte" r14, [r13, r12, lsr #2]") \ 66562306a36Sopenharmony_ci TEST_RPR("str"byte" r",1, VAL1,", [r",2, 24,", r",3, 32,", asr #3]!")\ 66662306a36Sopenharmony_ci TEST_RPR("str"byte" r",12,VAL2,", [r",11,24,", r",10, 4,", ror #31]!")\ 66762306a36Sopenharmony_ci TEST_P( "ldr"byte" r0, [r",0, 24,", #-2]") \ 66862306a36Sopenharmony_ci TEST_P( "ldr"byte" r14, [r",13,0, ", #2]") \ 66962306a36Sopenharmony_ci TEST_P( "ldr"byte" r1, [r",2, 24,", #4]!") \ 67062306a36Sopenharmony_ci TEST_P( "ldr"byte" r12, [r",11,24,", #-4]!") \ 67162306a36Sopenharmony_ci TEST_P( "ldr"byte" r2, [r",3, 24,"], #48") \ 67262306a36Sopenharmony_ci TEST_P( "ldr"byte" r10, [r",9, 64,"], #-48") \ 67362306a36Sopenharmony_ci TEST_PR( "ldr"byte" r0, [r",0, 48,", -r",2, 24,"]") \ 67462306a36Sopenharmony_ci TEST_PR( "ldr"byte" r14, [r",13,0, ", r",12, 48,"]") \ 67562306a36Sopenharmony_ci TEST_PR( "ldr"byte" r1, [r",2, 24,", r",3, 48,"]!") \ 67662306a36Sopenharmony_ci TEST_PR( "ldr"byte" r12, [r",11,48,", -r",10,24,"]!") \ 67762306a36Sopenharmony_ci TEST_PR( "ldr"byte" r2, [r",3, 24,"], r",4, 48,"") \ 67862306a36Sopenharmony_ci TEST_PR( "ldr"byte" r10, [r",9, 48,"], -r",11,24,"") \ 67962306a36Sopenharmony_ci TEST_PR( "ldr"byte" r0, [r",0, 24,", r",2, 32,", asl #1]") \ 68062306a36Sopenharmony_ci TEST_PR( "ldr"byte" r14, [r",13,0, ", r",12, 32,", lsr #2]") \ 68162306a36Sopenharmony_ci TEST_PR( "ldr"byte" r1, [r",2, 24,", r",3, 32,", asr #3]!") \ 68262306a36Sopenharmony_ci TEST_PR( "ldr"byte" r12, [r",11,24,", r",10, 4,", ror #31]!") \ 68362306a36Sopenharmony_ci TEST( "ldr"byte" r0, [pc, #0]") \ 68462306a36Sopenharmony_ci TEST_R( "ldr"byte" r12, [pc, r",14,0,"]") 68562306a36Sopenharmony_ci 68662306a36Sopenharmony_ci LOAD_STORE("") 68762306a36Sopenharmony_ci TEST_P( "str pc, [r",0,0,", #15*4]") 68862306a36Sopenharmony_ci TEST_UNSUPPORTED( "str pc, [sp, r2]") 68962306a36Sopenharmony_ci TEST_BF( "ldr pc, [sp, #15*4]") 69062306a36Sopenharmony_ci TEST_BF_R("ldr pc, [sp, r",2,15*4,"]") 69162306a36Sopenharmony_ci 69262306a36Sopenharmony_ci TEST_P( "str sp, [r",0,0,", #13*4]") 69362306a36Sopenharmony_ci TEST_UNSUPPORTED( "str sp, [sp, r2]") 69462306a36Sopenharmony_ci TEST_BF( "ldr sp, [sp, #13*4]") 69562306a36Sopenharmony_ci TEST_BF_R("ldr sp, [sp, r",2,13*4,"]") 69662306a36Sopenharmony_ci 69762306a36Sopenharmony_ci#ifdef CONFIG_THUMB2_KERNEL 69862306a36Sopenharmony_ci TEST_ARM_TO_THUMB_INTERWORK_P("ldr pc, [r",0,0,", #15*4]") 69962306a36Sopenharmony_ci#endif 70062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe5af6008) " @ str r6, [pc, #8]!") 70162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7af6008) " @ str r6, [pc, r8]!") 70262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe5bf6008) " @ ldr r6, [pc, #8]!") 70362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7bf6008) " @ ldr r6, [pc, r8]!") 70462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe788600f) " @ str r6, [r8, pc]") 70562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe798600f) " @ ldr r6, [r8, pc]") 70662306a36Sopenharmony_ci 70762306a36Sopenharmony_ci LOAD_STORE("b") 70862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe5f7f008) " @ ldrb pc, [r7, #8]!") 70962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7f7f008) " @ ldrb pc, [r7, r8]!") 71062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe5ef6008) " @ strb r6, [pc, #8]!") 71162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7ef6008) " @ strb r6, [pc, r3]!") 71262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe5ff6008) " @ ldrb r6, [pc, #8]!") 71362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7ff6008) " @ ldrb r6, [pc, r3]!") 71462306a36Sopenharmony_ci 71562306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrt r0, [r1], #4") 71662306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrt r1, [r2], r3") 71762306a36Sopenharmony_ci TEST_UNSUPPORTED("strt r2, [r3], #4") 71862306a36Sopenharmony_ci TEST_UNSUPPORTED("strt r3, [r4], r5") 71962306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrbt r4, [r5], #4") 72062306a36Sopenharmony_ci TEST_UNSUPPORTED("ldrbt r5, [r6], r7") 72162306a36Sopenharmony_ci TEST_UNSUPPORTED("strbt r6, [r7], #4") 72262306a36Sopenharmony_ci TEST_UNSUPPORTED("strbt r7, [r8], r9") 72362306a36Sopenharmony_ci 72462306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 72562306a36Sopenharmony_ci TEST_GROUP("Parallel addition and subtraction, signed") 72662306a36Sopenharmony_ci 72762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6000010) "") /* Unallocated space */ 72862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe60fffff) "") /* Unallocated space */ 72962306a36Sopenharmony_ci 73062306a36Sopenharmony_ci TEST_RR( "sadd16 r0, r",0, HH1,", r",1, HH2,"") 73162306a36Sopenharmony_ci TEST_RR( "sadd16 r14, r",12,HH2,", r",10,HH1,"") 73262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61cff1a) " @ sadd16 pc, r12, r10") 73362306a36Sopenharmony_ci TEST_RR( "sasx r0, r",0, HH1,", r",1, HH2,"") 73462306a36Sopenharmony_ci TEST_RR( "sasx r14, r",12,HH2,", r",10,HH1,"") 73562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61cff3a) " @ sasx pc, r12, r10") 73662306a36Sopenharmony_ci TEST_RR( "ssax r0, r",0, HH1,", r",1, HH2,"") 73762306a36Sopenharmony_ci TEST_RR( "ssax r14, r",12,HH2,", r",10,HH1,"") 73862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61cff5a) " @ ssax pc, r12, r10") 73962306a36Sopenharmony_ci TEST_RR( "ssub16 r0, r",0, HH1,", r",1, HH2,"") 74062306a36Sopenharmony_ci TEST_RR( "ssub16 r14, r",12,HH2,", r",10,HH1,"") 74162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61cff7a) " @ ssub16 pc, r12, r10") 74262306a36Sopenharmony_ci TEST_RR( "sadd8 r0, r",0, HH1,", r",1, HH2,"") 74362306a36Sopenharmony_ci TEST_RR( "sadd8 r14, r",12,HH2,", r",10,HH1,"") 74462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61cff9a) " @ sadd8 pc, r12, r10") 74562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61000b0) "") /* Unallocated space */ 74662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61fffbf) "") /* Unallocated space */ 74762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61000d0) "") /* Unallocated space */ 74862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61fffdf) "") /* Unallocated space */ 74962306a36Sopenharmony_ci TEST_RR( "ssub8 r0, r",0, HH1,", r",1, HH2,"") 75062306a36Sopenharmony_ci TEST_RR( "ssub8 r14, r",12,HH2,", r",10,HH1,"") 75162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe61cfffa) " @ ssub8 pc, r12, r10") 75262306a36Sopenharmony_ci 75362306a36Sopenharmony_ci TEST_RR( "qadd16 r0, r",0, HH1,", r",1, HH2,"") 75462306a36Sopenharmony_ci TEST_RR( "qadd16 r14, r",12,HH2,", r",10,HH1,"") 75562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62cff1a) " @ qadd16 pc, r12, r10") 75662306a36Sopenharmony_ci TEST_RR( "qasx r0, r",0, HH1,", r",1, HH2,"") 75762306a36Sopenharmony_ci TEST_RR( "qasx r14, r",12,HH2,", r",10,HH1,"") 75862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62cff3a) " @ qasx pc, r12, r10") 75962306a36Sopenharmony_ci TEST_RR( "qsax r0, r",0, HH1,", r",1, HH2,"") 76062306a36Sopenharmony_ci TEST_RR( "qsax r14, r",12,HH2,", r",10,HH1,"") 76162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62cff5a) " @ qsax pc, r12, r10") 76262306a36Sopenharmony_ci TEST_RR( "qsub16 r0, r",0, HH1,", r",1, HH2,"") 76362306a36Sopenharmony_ci TEST_RR( "qsub16 r14, r",12,HH2,", r",10,HH1,"") 76462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62cff7a) " @ qsub16 pc, r12, r10") 76562306a36Sopenharmony_ci TEST_RR( "qadd8 r0, r",0, HH1,", r",1, HH2,"") 76662306a36Sopenharmony_ci TEST_RR( "qadd8 r14, r",12,HH2,", r",10,HH1,"") 76762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62cff9a) " @ qadd8 pc, r12, r10") 76862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62000b0) "") /* Unallocated space */ 76962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62fffbf) "") /* Unallocated space */ 77062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62000d0) "") /* Unallocated space */ 77162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62fffdf) "") /* Unallocated space */ 77262306a36Sopenharmony_ci TEST_RR( "qsub8 r0, r",0, HH1,", r",1, HH2,"") 77362306a36Sopenharmony_ci TEST_RR( "qsub8 r14, r",12,HH2,", r",10,HH1,"") 77462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe62cfffa) " @ qsub8 pc, r12, r10") 77562306a36Sopenharmony_ci 77662306a36Sopenharmony_ci TEST_RR( "shadd16 r0, r",0, HH1,", r",1, HH2,"") 77762306a36Sopenharmony_ci TEST_RR( "shadd16 r14, r",12,HH2,", r",10,HH1,"") 77862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63cff1a) " @ shadd16 pc, r12, r10") 77962306a36Sopenharmony_ci TEST_RR( "shasx r0, r",0, HH1,", r",1, HH2,"") 78062306a36Sopenharmony_ci TEST_RR( "shasx r14, r",12,HH2,", r",10,HH1,"") 78162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63cff3a) " @ shasx pc, r12, r10") 78262306a36Sopenharmony_ci TEST_RR( "shsax r0, r",0, HH1,", r",1, HH2,"") 78362306a36Sopenharmony_ci TEST_RR( "shsax r14, r",12,HH2,", r",10,HH1,"") 78462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63cff5a) " @ shsax pc, r12, r10") 78562306a36Sopenharmony_ci TEST_RR( "shsub16 r0, r",0, HH1,", r",1, HH2,"") 78662306a36Sopenharmony_ci TEST_RR( "shsub16 r14, r",12,HH2,", r",10,HH1,"") 78762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63cff7a) " @ shsub16 pc, r12, r10") 78862306a36Sopenharmony_ci TEST_RR( "shadd8 r0, r",0, HH1,", r",1, HH2,"") 78962306a36Sopenharmony_ci TEST_RR( "shadd8 r14, r",12,HH2,", r",10,HH1,"") 79062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63cff9a) " @ shadd8 pc, r12, r10") 79162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63000b0) "") /* Unallocated space */ 79262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63fffbf) "") /* Unallocated space */ 79362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63000d0) "") /* Unallocated space */ 79462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63fffdf) "") /* Unallocated space */ 79562306a36Sopenharmony_ci TEST_RR( "shsub8 r0, r",0, HH1,", r",1, HH2,"") 79662306a36Sopenharmony_ci TEST_RR( "shsub8 r14, r",12,HH2,", r",10,HH1,"") 79762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe63cfffa) " @ shsub8 pc, r12, r10") 79862306a36Sopenharmony_ci 79962306a36Sopenharmony_ci TEST_GROUP("Parallel addition and subtraction, unsigned") 80062306a36Sopenharmony_ci 80162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6400010) "") /* Unallocated space */ 80262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe64fffff) "") /* Unallocated space */ 80362306a36Sopenharmony_ci 80462306a36Sopenharmony_ci TEST_RR( "uadd16 r0, r",0, HH1,", r",1, HH2,"") 80562306a36Sopenharmony_ci TEST_RR( "uadd16 r14, r",12,HH2,", r",10,HH1,"") 80662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65cff1a) " @ uadd16 pc, r12, r10") 80762306a36Sopenharmony_ci TEST_RR( "uasx r0, r",0, HH1,", r",1, HH2,"") 80862306a36Sopenharmony_ci TEST_RR( "uasx r14, r",12,HH2,", r",10,HH1,"") 80962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65cff3a) " @ uasx pc, r12, r10") 81062306a36Sopenharmony_ci TEST_RR( "usax r0, r",0, HH1,", r",1, HH2,"") 81162306a36Sopenharmony_ci TEST_RR( "usax r14, r",12,HH2,", r",10,HH1,"") 81262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65cff5a) " @ usax pc, r12, r10") 81362306a36Sopenharmony_ci TEST_RR( "usub16 r0, r",0, HH1,", r",1, HH2,"") 81462306a36Sopenharmony_ci TEST_RR( "usub16 r14, r",12,HH2,", r",10,HH1,"") 81562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65cff7a) " @ usub16 pc, r12, r10") 81662306a36Sopenharmony_ci TEST_RR( "uadd8 r0, r",0, HH1,", r",1, HH2,"") 81762306a36Sopenharmony_ci TEST_RR( "uadd8 r14, r",12,HH2,", r",10,HH1,"") 81862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65cff9a) " @ uadd8 pc, r12, r10") 81962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65000b0) "") /* Unallocated space */ 82062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65fffbf) "") /* Unallocated space */ 82162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65000d0) "") /* Unallocated space */ 82262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65fffdf) "") /* Unallocated space */ 82362306a36Sopenharmony_ci TEST_RR( "usub8 r0, r",0, HH1,", r",1, HH2,"") 82462306a36Sopenharmony_ci TEST_RR( "usub8 r14, r",12,HH2,", r",10,HH1,"") 82562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe65cfffa) " @ usub8 pc, r12, r10") 82662306a36Sopenharmony_ci 82762306a36Sopenharmony_ci TEST_RR( "uqadd16 r0, r",0, HH1,", r",1, HH2,"") 82862306a36Sopenharmony_ci TEST_RR( "uqadd16 r14, r",12,HH2,", r",10,HH1,"") 82962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66cff1a) " @ uqadd16 pc, r12, r10") 83062306a36Sopenharmony_ci TEST_RR( "uqasx r0, r",0, HH1,", r",1, HH2,"") 83162306a36Sopenharmony_ci TEST_RR( "uqasx r14, r",12,HH2,", r",10,HH1,"") 83262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66cff3a) " @ uqasx pc, r12, r10") 83362306a36Sopenharmony_ci TEST_RR( "uqsax r0, r",0, HH1,", r",1, HH2,"") 83462306a36Sopenharmony_ci TEST_RR( "uqsax r14, r",12,HH2,", r",10,HH1,"") 83562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66cff5a) " @ uqsax pc, r12, r10") 83662306a36Sopenharmony_ci TEST_RR( "uqsub16 r0, r",0, HH1,", r",1, HH2,"") 83762306a36Sopenharmony_ci TEST_RR( "uqsub16 r14, r",12,HH2,", r",10,HH1,"") 83862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66cff7a) " @ uqsub16 pc, r12, r10") 83962306a36Sopenharmony_ci TEST_RR( "uqadd8 r0, r",0, HH1,", r",1, HH2,"") 84062306a36Sopenharmony_ci TEST_RR( "uqadd8 r14, r",12,HH2,", r",10,HH1,"") 84162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66cff9a) " @ uqadd8 pc, r12, r10") 84262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66000b0) "") /* Unallocated space */ 84362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66fffbf) "") /* Unallocated space */ 84462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66000d0) "") /* Unallocated space */ 84562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66fffdf) "") /* Unallocated space */ 84662306a36Sopenharmony_ci TEST_RR( "uqsub8 r0, r",0, HH1,", r",1, HH2,"") 84762306a36Sopenharmony_ci TEST_RR( "uqsub8 r14, r",12,HH2,", r",10,HH1,"") 84862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe66cfffa) " @ uqsub8 pc, r12, r10") 84962306a36Sopenharmony_ci 85062306a36Sopenharmony_ci TEST_RR( "uhadd16 r0, r",0, HH1,", r",1, HH2,"") 85162306a36Sopenharmony_ci TEST_RR( "uhadd16 r14, r",12,HH2,", r",10,HH1,"") 85262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67cff1a) " @ uhadd16 pc, r12, r10") 85362306a36Sopenharmony_ci TEST_RR( "uhasx r0, r",0, HH1,", r",1, HH2,"") 85462306a36Sopenharmony_ci TEST_RR( "uhasx r14, r",12,HH2,", r",10,HH1,"") 85562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67cff3a) " @ uhasx pc, r12, r10") 85662306a36Sopenharmony_ci TEST_RR( "uhsax r0, r",0, HH1,", r",1, HH2,"") 85762306a36Sopenharmony_ci TEST_RR( "uhsax r14, r",12,HH2,", r",10,HH1,"") 85862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67cff5a) " @ uhsax pc, r12, r10") 85962306a36Sopenharmony_ci TEST_RR( "uhsub16 r0, r",0, HH1,", r",1, HH2,"") 86062306a36Sopenharmony_ci TEST_RR( "uhsub16 r14, r",12,HH2,", r",10,HH1,"") 86162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67cff7a) " @ uhsub16 pc, r12, r10") 86262306a36Sopenharmony_ci TEST_RR( "uhadd8 r0, r",0, HH1,", r",1, HH2,"") 86362306a36Sopenharmony_ci TEST_RR( "uhadd8 r14, r",12,HH2,", r",10,HH1,"") 86462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67cff9a) " @ uhadd8 pc, r12, r10") 86562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67000b0) "") /* Unallocated space */ 86662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67fffbf) "") /* Unallocated space */ 86762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67000d0) "") /* Unallocated space */ 86862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67fffdf) "") /* Unallocated space */ 86962306a36Sopenharmony_ci TEST_RR( "uhsub8 r0, r",0, HH1,", r",1, HH2,"") 87062306a36Sopenharmony_ci TEST_RR( "uhsub8 r14, r",12,HH2,", r",10,HH1,"") 87162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67cfffa) " @ uhsub8 pc, r12, r10") 87262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67feffa) " @ uhsub8 r14, pc, r10") 87362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe67cefff) " @ uhsub8 r14, r12, pc") 87462306a36Sopenharmony_ci#endif /* __LINUX_ARM_ARCH__ >= 7 */ 87562306a36Sopenharmony_ci 87662306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 87762306a36Sopenharmony_ci TEST_GROUP("Packing, unpacking, saturation, and reversal") 87862306a36Sopenharmony_ci 87962306a36Sopenharmony_ci TEST_RR( "pkhbt r0, r",0, HH1,", r",1, HH2,"") 88062306a36Sopenharmony_ci TEST_RR( "pkhbt r14,r",12, HH1,", r",10,HH2,", lsl #2") 88162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68cf11a) " @ pkhbt pc, r12, r10, lsl #2") 88262306a36Sopenharmony_ci TEST_RR( "pkhtb r0, r",0, HH1,", r",1, HH2,"") 88362306a36Sopenharmony_ci TEST_RR( "pkhtb r14,r",12, HH1,", r",10,HH2,", asr #2") 88462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68cf15a) " @ pkhtb pc, r12, r10, asr #2") 88562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68fe15a) " @ pkhtb r14, pc, r10, asr #2") 88662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68ce15f) " @ pkhtb r14, r12, pc, asr #2") 88762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6900010) "") /* Unallocated space */ 88862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe69fffdf) "") /* Unallocated space */ 88962306a36Sopenharmony_ci 89062306a36Sopenharmony_ci TEST_R( "ssat r0, #24, r",0, VAL1,"") 89162306a36Sopenharmony_ci TEST_R( "ssat r14, #24, r",12, VAL2,"") 89262306a36Sopenharmony_ci TEST_R( "ssat r0, #24, r",0, VAL1,", lsl #8") 89362306a36Sopenharmony_ci TEST_R( "ssat r14, #24, r",12, VAL2,", asr #8") 89462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6b7f01c) " @ ssat pc, #24, r12") 89562306a36Sopenharmony_ci 89662306a36Sopenharmony_ci TEST_R( "usat r0, #24, r",0, VAL1,"") 89762306a36Sopenharmony_ci TEST_R( "usat r14, #24, r",12, VAL2,"") 89862306a36Sopenharmony_ci TEST_R( "usat r0, #24, r",0, VAL1,", lsl #8") 89962306a36Sopenharmony_ci TEST_R( "usat r14, #24, r",12, VAL2,", asr #8") 90062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6f7f01c) " @ usat pc, #24, r12") 90162306a36Sopenharmony_ci 90262306a36Sopenharmony_ci TEST_RR( "sxtab16 r0, r",0, HH1,", r",1, HH2,"") 90362306a36Sopenharmony_ci TEST_RR( "sxtab16 r14,r",12, HH2,", r",10,HH1,", ror #8") 90462306a36Sopenharmony_ci TEST_R( "sxtb16 r8, r",7, HH1,"") 90562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68cf47a) " @ sxtab16 pc,r12, r10, ror #8") 90662306a36Sopenharmony_ci 90762306a36Sopenharmony_ci TEST_RR( "sel r0, r",0, VAL1,", r",1, VAL2,"") 90862306a36Sopenharmony_ci TEST_RR( "sel r14, r",12,VAL1,", r",10, VAL2,"") 90962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68cffba) " @ sel pc, r12, r10") 91062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68fefba) " @ sel r14, pc, r10") 91162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe68cefbf) " @ sel r14, r12, pc") 91262306a36Sopenharmony_ci 91362306a36Sopenharmony_ci TEST_R( "ssat16 r0, #12, r",0, HH1,"") 91462306a36Sopenharmony_ci TEST_R( "ssat16 r14, #12, r",12, HH2,"") 91562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6abff3c) " @ ssat16 pc, #12, r12") 91662306a36Sopenharmony_ci 91762306a36Sopenharmony_ci TEST_RR( "sxtab r0, r",0, HH1,", r",1, HH2,"") 91862306a36Sopenharmony_ci TEST_RR( "sxtab r14,r",12, HH2,", r",10,HH1,", ror #8") 91962306a36Sopenharmony_ci TEST_R( "sxtb r8, r",7, HH1,"") 92062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6acf47a) " @ sxtab pc,r12, r10, ror #8") 92162306a36Sopenharmony_ci 92262306a36Sopenharmony_ci TEST_R( "rev r0, r",0, VAL1,"") 92362306a36Sopenharmony_ci TEST_R( "rev r14, r",12, VAL2,"") 92462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6bfff3c) " @ rev pc, r12") 92562306a36Sopenharmony_ci 92662306a36Sopenharmony_ci TEST_RR( "sxtah r0, r",0, HH1,", r",1, HH2,"") 92762306a36Sopenharmony_ci TEST_RR( "sxtah r14,r",12, HH2,", r",10,HH1,", ror #8") 92862306a36Sopenharmony_ci TEST_R( "sxth r8, r",7, HH1,"") 92962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6bcf47a) " @ sxtah pc,r12, r10, ror #8") 93062306a36Sopenharmony_ci 93162306a36Sopenharmony_ci TEST_R( "rev16 r0, r",0, VAL1,"") 93262306a36Sopenharmony_ci TEST_R( "rev16 r14, r",12, VAL2,"") 93362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6bfffbc) " @ rev16 pc, r12") 93462306a36Sopenharmony_ci 93562306a36Sopenharmony_ci TEST_RR( "uxtab16 r0, r",0, HH1,", r",1, HH2,"") 93662306a36Sopenharmony_ci TEST_RR( "uxtab16 r14,r",12, HH2,", r",10,HH1,", ror #8") 93762306a36Sopenharmony_ci TEST_R( "uxtb16 r8, r",7, HH1,"") 93862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ccf47a) " @ uxtab16 pc,r12, r10, ror #8") 93962306a36Sopenharmony_ci 94062306a36Sopenharmony_ci TEST_R( "usat16 r0, #12, r",0, HH1,"") 94162306a36Sopenharmony_ci TEST_R( "usat16 r14, #12, r",12, HH2,"") 94262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ecff3c) " @ usat16 pc, #12, r12") 94362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ecef3f) " @ usat16 r14, #12, pc") 94462306a36Sopenharmony_ci 94562306a36Sopenharmony_ci TEST_RR( "uxtab r0, r",0, HH1,", r",1, HH2,"") 94662306a36Sopenharmony_ci TEST_RR( "uxtab r14,r",12, HH2,", r",10,HH1,", ror #8") 94762306a36Sopenharmony_ci TEST_R( "uxtb r8, r",7, HH1,"") 94862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ecf47a) " @ uxtab pc,r12, r10, ror #8") 94962306a36Sopenharmony_ci 95062306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 95162306a36Sopenharmony_ci TEST_R( "rbit r0, r",0, VAL1,"") 95262306a36Sopenharmony_ci TEST_R( "rbit r14, r",12, VAL2,"") 95362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ffff3c) " @ rbit pc, r12") 95462306a36Sopenharmony_ci#endif 95562306a36Sopenharmony_ci 95662306a36Sopenharmony_ci TEST_RR( "uxtah r0, r",0, HH1,", r",1, HH2,"") 95762306a36Sopenharmony_ci TEST_RR( "uxtah r14,r",12, HH2,", r",10,HH1,", ror #8") 95862306a36Sopenharmony_ci TEST_R( "uxth r8, r",7, HH1,"") 95962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6fff077) " @ uxth pc, r7") 96062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ff807f) " @ uxth r8, pc") 96162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6fcf47a) " @ uxtah pc, r12, r10, ror #8") 96262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6fce47f) " @ uxtah r14, r12, pc, ror #8") 96362306a36Sopenharmony_ci 96462306a36Sopenharmony_ci TEST_R( "revsh r0, r",0, VAL1,"") 96562306a36Sopenharmony_ci TEST_R( "revsh r14, r",12, VAL2,"") 96662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ffff3c) " @ revsh pc, r12") 96762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6ffef3f) " @ revsh r14, pc") 96862306a36Sopenharmony_ci 96962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6900070) "") /* Unallocated space */ 97062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe69fff7f) "") /* Unallocated space */ 97162306a36Sopenharmony_ci 97262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6d00070) "") /* Unallocated space */ 97362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe6dfff7f) "") /* Unallocated space */ 97462306a36Sopenharmony_ci#endif /* __LINUX_ARM_ARCH__ >= 6 */ 97562306a36Sopenharmony_ci 97662306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 97762306a36Sopenharmony_ci TEST_GROUP("Signed multiplies") 97862306a36Sopenharmony_ci 97962306a36Sopenharmony_ci TEST_RRR( "smlad r0, r",0, HH1,", r",1, HH2,", r",2, VAL1,"") 98062306a36Sopenharmony_ci TEST_RRR( "smlad r14, r",12,HH2,", r",10,HH1,", r",8, VAL2,"") 98162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70f8a1c) " @ smlad pc, r12, r10, r8") 98262306a36Sopenharmony_ci TEST_RRR( "smladx r0, r",0, HH1,", r",1, HH2,", r",2, VAL1,"") 98362306a36Sopenharmony_ci TEST_RRR( "smladx r14, r",12,HH2,", r",10,HH1,", r",8, VAL2,"") 98462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70f8a3c) " @ smladx pc, r12, r10, r8") 98562306a36Sopenharmony_ci 98662306a36Sopenharmony_ci TEST_RR( "smuad r0, r",0, HH1,", r",1, HH2,"") 98762306a36Sopenharmony_ci TEST_RR( "smuad r14, r",12,HH2,", r",10,HH1,"") 98862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70ffa1c) " @ smuad pc, r12, r10") 98962306a36Sopenharmony_ci TEST_RR( "smuadx r0, r",0, HH1,", r",1, HH2,"") 99062306a36Sopenharmony_ci TEST_RR( "smuadx r14, r",12,HH2,", r",10,HH1,"") 99162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70ffa3c) " @ smuadx pc, r12, r10") 99262306a36Sopenharmony_ci 99362306a36Sopenharmony_ci TEST_RRR( "smlsd r0, r",0, HH1,", r",1, HH2,", r",2, VAL1,"") 99462306a36Sopenharmony_ci TEST_RRR( "smlsd r14, r",12,HH2,", r",10,HH1,", r",8, VAL2,"") 99562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70f8a5c) " @ smlsd pc, r12, r10, r8") 99662306a36Sopenharmony_ci TEST_RRR( "smlsdx r0, r",0, HH1,", r",1, HH2,", r",2, VAL1,"") 99762306a36Sopenharmony_ci TEST_RRR( "smlsdx r14, r",12,HH2,", r",10,HH1,", r",8, VAL2,"") 99862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70f8a7c) " @ smlsdx pc, r12, r10, r8") 99962306a36Sopenharmony_ci 100062306a36Sopenharmony_ci TEST_RR( "smusd r0, r",0, HH1,", r",1, HH2,"") 100162306a36Sopenharmony_ci TEST_RR( "smusd r14, r",12,HH2,", r",10,HH1,"") 100262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70ffa5c) " @ smusd pc, r12, r10") 100362306a36Sopenharmony_ci TEST_RR( "smusdx r0, r",0, HH1,", r",1, HH2,"") 100462306a36Sopenharmony_ci TEST_RR( "smusdx r14, r",12,HH2,", r",10,HH1,"") 100562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe70ffa7c) " @ smusdx pc, r12, r10") 100662306a36Sopenharmony_ci 100762306a36Sopenharmony_ci TEST_RRRR( "smlald r",0, VAL1,", r",1, VAL2, ", r",0, HH1,", r",1, HH2) 100862306a36Sopenharmony_ci TEST_RRRR( "smlald r",11,VAL2,", r",10,VAL1, ", r",9, HH2,", r",8, HH1) 100962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe74af819) " @ smlald pc, r10, r9, r8") 101062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe74fb819) " @ smlald r11, pc, r9, r8") 101162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe74ab81f) " @ smlald r11, r10, pc, r8") 101262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe74abf19) " @ smlald r11, r10, r9, pc") 101362306a36Sopenharmony_ci 101462306a36Sopenharmony_ci TEST_RRRR( "smlaldx r",0, VAL1,", r",1, VAL2, ", r",0, HH1,", r",1, HH2) 101562306a36Sopenharmony_ci TEST_RRRR( "smlaldx r",11,VAL2,", r",10,VAL1, ", r",9, HH2,", r",8, HH1) 101662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe74af839) " @ smlaldx pc, r10, r9, r8") 101762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe74fb839) " @ smlaldx r11, pc, r9, r8") 101862306a36Sopenharmony_ci 101962306a36Sopenharmony_ci TEST_RRR( "smmla r0, r",0, VAL1,", r",1, VAL2,", r",2, VAL1,"") 102062306a36Sopenharmony_ci TEST_RRR( "smmla r14, r",12,VAL2,", r",10,VAL1,", r",8, VAL2,"") 102162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75f8a1c) " @ smmla pc, r12, r10, r8") 102262306a36Sopenharmony_ci TEST_RRR( "smmlar r0, r",0, VAL1,", r",1, VAL2,", r",2, VAL1,"") 102362306a36Sopenharmony_ci TEST_RRR( "smmlar r14, r",12,VAL2,", r",10,VAL1,", r",8, VAL2,"") 102462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75f8a3c) " @ smmlar pc, r12, r10, r8") 102562306a36Sopenharmony_ci 102662306a36Sopenharmony_ci TEST_RR( "smmul r0, r",0, VAL1,", r",1, VAL2,"") 102762306a36Sopenharmony_ci TEST_RR( "smmul r14, r",12,VAL2,", r",10,VAL1,"") 102862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75ffa1c) " @ smmul pc, r12, r10") 102962306a36Sopenharmony_ci TEST_RR( "smmulr r0, r",0, VAL1,", r",1, VAL2,"") 103062306a36Sopenharmony_ci TEST_RR( "smmulr r14, r",12,VAL2,", r",10,VAL1,"") 103162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75ffa3c) " @ smmulr pc, r12, r10") 103262306a36Sopenharmony_ci 103362306a36Sopenharmony_ci TEST_RRR( "smmls r0, r",0, VAL1,", r",1, VAL2,", r",2, VAL1,"") 103462306a36Sopenharmony_ci TEST_RRR( "smmls r14, r",12,VAL2,", r",10,VAL1,", r",8, VAL2,"") 103562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75f8adc) " @ smmls pc, r12, r10, r8") 103662306a36Sopenharmony_ci TEST_RRR( "smmlsr r0, r",0, VAL1,", r",1, VAL2,", r",2, VAL1,"") 103762306a36Sopenharmony_ci TEST_RRR( "smmlsr r14, r",12,VAL2,", r",10,VAL1,", r",8, VAL2,"") 103862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75f8afc) " @ smmlsr pc, r12, r10, r8") 103962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75e8aff) " @ smmlsr r14, pc, r10, r8") 104062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75e8ffc) " @ smmlsr r14, r12, pc, r8") 104162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75efafc) " @ smmlsr r14, r12, r10, pc") 104262306a36Sopenharmony_ci 104362306a36Sopenharmony_ci TEST_RR( "usad8 r0, r",0, VAL1,", r",1, VAL2,"") 104462306a36Sopenharmony_ci TEST_RR( "usad8 r14, r",12,VAL2,", r",10,VAL1,"") 104562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75ffa1c) " @ usad8 pc, r12, r10") 104662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75efa1f) " @ usad8 r14, pc, r10") 104762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe75eff1c) " @ usad8 r14, r12, pc") 104862306a36Sopenharmony_ci 104962306a36Sopenharmony_ci TEST_RRR( "usada8 r0, r",0, VAL1,", r",1, VAL2,", r",2, VAL3,"") 105062306a36Sopenharmony_ci TEST_RRR( "usada8 r14, r",12,VAL2,", r",10,VAL1,", r",8, VAL3,"") 105162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe78f8a1c) " @ usada8 pc, r12, r10, r8") 105262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe78e8a1f) " @ usada8 r14, pc, r10, r8") 105362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe78e8f1c) " @ usada8 r14, r12, pc, r8") 105462306a36Sopenharmony_ci#endif /* __LINUX_ARM_ARCH__ >= 6 */ 105562306a36Sopenharmony_ci 105662306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 105762306a36Sopenharmony_ci TEST_GROUP("Bit Field") 105862306a36Sopenharmony_ci 105962306a36Sopenharmony_ci TEST_R( "sbfx r0, r",0 , VAL1,", #0, #31") 106062306a36Sopenharmony_ci TEST_R( "sbfxeq r14, r",12, VAL2,", #8, #16") 106162306a36Sopenharmony_ci TEST_R( "sbfx r4, r",10, VAL1,", #16, #15") 106262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7aff45c) " @ sbfx pc, r12, #8, #16") 106362306a36Sopenharmony_ci 106462306a36Sopenharmony_ci TEST_R( "ubfx r0, r",0 , VAL1,", #0, #31") 106562306a36Sopenharmony_ci TEST_R( "ubfxcs r14, r",12, VAL2,", #8, #16") 106662306a36Sopenharmony_ci TEST_R( "ubfx r4, r",10, VAL1,", #16, #15") 106762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7eff45c) " @ ubfx pc, r12, #8, #16") 106862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7efc45f) " @ ubfx r12, pc, #8, #16") 106962306a36Sopenharmony_ci 107062306a36Sopenharmony_ci TEST_R( "bfc r",0, VAL1,", #4, #20") 107162306a36Sopenharmony_ci TEST_R( "bfcvs r",14,VAL2,", #4, #20") 107262306a36Sopenharmony_ci TEST_R( "bfc r",7, VAL1,", #0, #31") 107362306a36Sopenharmony_ci TEST_R( "bfc r",8, VAL2,", #0, #31") 107462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7def01f) " @ bfc pc, #0, #31"); 107562306a36Sopenharmony_ci 107662306a36Sopenharmony_ci TEST_RR( "bfi r",0, VAL1,", r",0 , VAL2,", #0, #31") 107762306a36Sopenharmony_ci TEST_RR( "bfipl r",12,VAL1,", r",14 , VAL2,", #4, #20") 107862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xe7d7f21e) " @ bfi pc, r14, #4, #20") 107962306a36Sopenharmony_ci 108062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x07f000f0) "") /* Permanently UNDEFINED */ 108162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x07ffffff) "") /* Permanently UNDEFINED */ 108262306a36Sopenharmony_ci#endif /* __LINUX_ARM_ARCH__ >= 6 */ 108362306a36Sopenharmony_ci 108462306a36Sopenharmony_ci TEST_GROUP("Branch, branch with link, and block data transfer") 108562306a36Sopenharmony_ci 108662306a36Sopenharmony_ci TEST_P( "stmda r",0, 16*4,", {r0}") 108762306a36Sopenharmony_ci TEST_P( "stmdaeq r",4, 16*4,", {r0-r15}") 108862306a36Sopenharmony_ci TEST_P( "stmdane r",8, 16*4,"!, {r8-r15}") 108962306a36Sopenharmony_ci TEST_P( "stmda r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 109062306a36Sopenharmony_ci TEST_P( "stmda r",13,0, "!, {pc}") 109162306a36Sopenharmony_ci 109262306a36Sopenharmony_ci TEST_P( "ldmda r",0, 16*4,", {r0}") 109362306a36Sopenharmony_ci TEST_BF_P("ldmdacs r",4, 15*4,", {r0-r15}") 109462306a36Sopenharmony_ci TEST_BF_P("ldmdacc r",7, 15*4,"!, {r8-r15}") 109562306a36Sopenharmony_ci TEST_P( "ldmda r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 109662306a36Sopenharmony_ci TEST_BF_P("ldmda r",14,15*4,"!, {pc}") 109762306a36Sopenharmony_ci 109862306a36Sopenharmony_ci TEST_P( "stmia r",0, 16*4,", {r0}") 109962306a36Sopenharmony_ci TEST_P( "stmiami r",4, 16*4,", {r0-r15}") 110062306a36Sopenharmony_ci TEST_P( "stmiapl r",8, 16*4,"!, {r8-r15}") 110162306a36Sopenharmony_ci TEST_P( "stmia r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 110262306a36Sopenharmony_ci TEST_P( "stmia r",14,0, "!, {pc}") 110362306a36Sopenharmony_ci 110462306a36Sopenharmony_ci TEST_P( "ldmia r",0, 16*4,", {r0}") 110562306a36Sopenharmony_ci TEST_BF_P("ldmiavs r",4, 0, ", {r0-r15}") 110662306a36Sopenharmony_ci TEST_BF_P("ldmiavc r",7, 8*4, "!, {r8-r15}") 110762306a36Sopenharmony_ci TEST_P( "ldmia r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 110862306a36Sopenharmony_ci TEST_BF_P("ldmia r",14,15*4,"!, {pc}") 110962306a36Sopenharmony_ci 111062306a36Sopenharmony_ci TEST_P( "stmdb r",0, 16*4,", {r0}") 111162306a36Sopenharmony_ci TEST_P( "stmdbhi r",4, 16*4,", {r0-r15}") 111262306a36Sopenharmony_ci TEST_P( "stmdbls r",8, 16*4,"!, {r8-r15}") 111362306a36Sopenharmony_ci TEST_P( "stmdb r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 111462306a36Sopenharmony_ci TEST_P( "stmdb r",13,4, "!, {pc}") 111562306a36Sopenharmony_ci 111662306a36Sopenharmony_ci TEST_P( "ldmdb r",0, 16*4,", {r0}") 111762306a36Sopenharmony_ci TEST_BF_P("ldmdbge r",4, 16*4,", {r0-r15}") 111862306a36Sopenharmony_ci TEST_BF_P("ldmdblt r",7, 16*4,"!, {r8-r15}") 111962306a36Sopenharmony_ci TEST_P( "ldmdb r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 112062306a36Sopenharmony_ci TEST_BF_P("ldmdb r",14,16*4,"!, {pc}") 112162306a36Sopenharmony_ci 112262306a36Sopenharmony_ci TEST_P( "stmib r",0, 16*4,", {r0}") 112362306a36Sopenharmony_ci TEST_P( "stmibgt r",4, 16*4,", {r0-r15}") 112462306a36Sopenharmony_ci TEST_P( "stmible r",8, 16*4,"!, {r8-r15}") 112562306a36Sopenharmony_ci TEST_P( "stmib r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 112662306a36Sopenharmony_ci TEST_P( "stmib r",13,-4, "!, {pc}") 112762306a36Sopenharmony_ci 112862306a36Sopenharmony_ci TEST_P( "ldmib r",0, 16*4,", {r0}") 112962306a36Sopenharmony_ci TEST_BF_P("ldmibeq r",4, -4,", {r0-r15}") 113062306a36Sopenharmony_ci TEST_BF_P("ldmibne r",7, 7*4,"!, {r8-r15}") 113162306a36Sopenharmony_ci TEST_P( "ldmib r",12,16*4,"!, {r1,r3,r5,r7,r8-r11,r14}") 113262306a36Sopenharmony_ci TEST_BF_P("ldmib r",14,14*4,"!, {pc}") 113362306a36Sopenharmony_ci 113462306a36Sopenharmony_ci TEST_P( "stmdb r",13,16*4,"!, {r3-r12,lr}") 113562306a36Sopenharmony_ci TEST_P( "stmdbeq r",13,16*4,"!, {r3-r12}") 113662306a36Sopenharmony_ci TEST_P( "stmdbne r",2, 16*4,", {r3-r12,lr}") 113762306a36Sopenharmony_ci TEST_P( "stmdb r",13,16*4,"!, {r2-r12,lr}") 113862306a36Sopenharmony_ci TEST_P( "stmdb r",0, 16*4,", {r0-r12}") 113962306a36Sopenharmony_ci TEST_P( "stmdb r",0, 16*4,", {r0-r12,lr}") 114062306a36Sopenharmony_ci 114162306a36Sopenharmony_ci TEST_BF_P("ldmia r",13,5*4, "!, {r3-r12,pc}") 114262306a36Sopenharmony_ci TEST_P( "ldmiacc r",13,5*4, "!, {r3-r12}") 114362306a36Sopenharmony_ci TEST_BF_P("ldmiacs r",2, 5*4, "!, {r3-r12,pc}") 114462306a36Sopenharmony_ci TEST_BF_P("ldmia r",13,4*4, "!, {r2-r12,pc}") 114562306a36Sopenharmony_ci TEST_P( "ldmia r",0, 16*4,", {r0-r12}") 114662306a36Sopenharmony_ci TEST_P( "ldmia r",0, 16*4,", {r0-r12,lr}") 114762306a36Sopenharmony_ci 114862306a36Sopenharmony_ci#ifdef CONFIG_THUMB2_KERNEL 114962306a36Sopenharmony_ci TEST_ARM_TO_THUMB_INTERWORK_P("ldmplia r",0,15*4,", {pc}") 115062306a36Sopenharmony_ci TEST_ARM_TO_THUMB_INTERWORK_P("ldmmiia r",13,0,", {r0-r15}") 115162306a36Sopenharmony_ci#endif 115262306a36Sopenharmony_ci TEST_BF("b 2f") 115362306a36Sopenharmony_ci TEST_BF("bl 2f") 115462306a36Sopenharmony_ci TEST_BB("b 2b") 115562306a36Sopenharmony_ci TEST_BB("bl 2b") 115662306a36Sopenharmony_ci 115762306a36Sopenharmony_ci TEST_BF("beq 2f") 115862306a36Sopenharmony_ci TEST_BF("bleq 2f") 115962306a36Sopenharmony_ci TEST_BB("bne 2b") 116062306a36Sopenharmony_ci TEST_BB("blne 2b") 116162306a36Sopenharmony_ci 116262306a36Sopenharmony_ci TEST_BF("bgt 2f") 116362306a36Sopenharmony_ci TEST_BF("blgt 2f") 116462306a36Sopenharmony_ci TEST_BB("blt 2b") 116562306a36Sopenharmony_ci TEST_BB("bllt 2b") 116662306a36Sopenharmony_ci 116762306a36Sopenharmony_ci TEST_GROUP("Supervisor Call, and coprocessor instructions") 116862306a36Sopenharmony_ci 116962306a36Sopenharmony_ci /* 117062306a36Sopenharmony_ci * We can't really test these by executing them, so all 117162306a36Sopenharmony_ci * we can do is check that probes are, or are not allowed. 117262306a36Sopenharmony_ci * At the moment none are allowed... 117362306a36Sopenharmony_ci */ 117462306a36Sopenharmony_ci#define TEST_COPROCESSOR(code) TEST_UNSUPPORTED(code) 117562306a36Sopenharmony_ci 117662306a36Sopenharmony_ci#define COPROCESSOR_INSTRUCTIONS_ST_LD(two,cc) \ 117762306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two" p0, cr0, [r13, #4]") \ 117862306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two" p0, cr0, [r13, #-4]") \ 117962306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two" p0, cr0, [r13, #4]!") \ 118062306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two" p0, cr0, [r13, #-4]!") \ 118162306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two" p0, cr0, [r13], #4") \ 118262306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two" p0, cr0, [r13], #-4") \ 118362306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two" p0, cr0, [r13], {1}") \ 118462306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two"l p0, cr0, [r13, #4]") \ 118562306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two"l p0, cr0, [r13, #-4]") \ 118662306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two"l p0, cr0, [r13, #4]!") \ 118762306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two"l p0, cr0, [r13, #-4]!") \ 118862306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two"l p0, cr0, [r13], #4") \ 118962306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two"l p0, cr0, [r13], #-4") \ 119062306a36Sopenharmony_ci TEST_COPROCESSOR("stc"two"l p0, cr0, [r13], {1}") \ 119162306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two" p0, cr0, [r13, #4]") \ 119262306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two" p0, cr0, [r13, #-4]") \ 119362306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two" p0, cr0, [r13, #4]!") \ 119462306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two" p0, cr0, [r13, #-4]!") \ 119562306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two" p0, cr0, [r13], #4") \ 119662306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two" p0, cr0, [r13], #-4") \ 119762306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two" p0, cr0, [r13], {1}") \ 119862306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two"l p0, cr0, [r13, #4]") \ 119962306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two"l p0, cr0, [r13, #-4]") \ 120062306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two"l p0, cr0, [r13, #4]!") \ 120162306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two"l p0, cr0, [r13, #-4]!") \ 120262306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two"l p0, cr0, [r13], #4") \ 120362306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two"l p0, cr0, [r13], #-4") \ 120462306a36Sopenharmony_ci TEST_COPROCESSOR("ldc"two"l p0, cr0, [r13], {1}") \ 120562306a36Sopenharmony_ci \ 120662306a36Sopenharmony_ci TEST_COPROCESSOR( "stc"two" p0, cr0, [r15, #4]") \ 120762306a36Sopenharmony_ci TEST_COPROCESSOR( "stc"two" p0, cr0, [r15, #-4]") \ 120862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##daf0001) " @ stc"two" 0, cr0, [r15, #4]!") \ 120962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##d2f0001) " @ stc"two" 0, cr0, [r15, #-4]!") \ 121062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##caf0001) " @ stc"two" 0, cr0, [r15], #4") \ 121162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c2f0001) " @ stc"two" 0, cr0, [r15], #-4") \ 121262306a36Sopenharmony_ci TEST_COPROCESSOR( "stc"two" p0, cr0, [r15], {1}") \ 121362306a36Sopenharmony_ci TEST_COPROCESSOR( "stc"two"l p0, cr0, [r15, #4]") \ 121462306a36Sopenharmony_ci TEST_COPROCESSOR( "stc"two"l p0, cr0, [r15, #-4]") \ 121562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##def0001) " @ stc"two"l 0, cr0, [r15, #4]!") \ 121662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##d6f0001) " @ stc"two"l 0, cr0, [r15, #-4]!") \ 121762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##cef0001) " @ stc"two"l 0, cr0, [r15], #4") \ 121862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c6f0001) " @ stc"two"l 0, cr0, [r15], #-4") \ 121962306a36Sopenharmony_ci TEST_COPROCESSOR( "stc"two"l p0, cr0, [r15], {1}") \ 122062306a36Sopenharmony_ci TEST_COPROCESSOR( "ldc"two" p0, cr0, [r15, #4]") \ 122162306a36Sopenharmony_ci TEST_COPROCESSOR( "ldc"two" p0, cr0, [r15, #-4]") \ 122262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##dbf0001) " @ ldc"two" 0, cr0, [r15, #4]!") \ 122362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##d3f0001) " @ ldc"two" 0, cr0, [r15, #-4]!") \ 122462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##cbf0001) " @ ldc"two" 0, cr0, [r15], #4") \ 122562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c3f0001) " @ ldc"two" 0, cr0, [r15], #-4") \ 122662306a36Sopenharmony_ci TEST_COPROCESSOR( "ldc"two" p0, cr0, [r15], {1}") \ 122762306a36Sopenharmony_ci TEST_COPROCESSOR( "ldc"two"l p0, cr0, [r15, #4]") \ 122862306a36Sopenharmony_ci TEST_COPROCESSOR( "ldc"two"l p0, cr0, [r15, #-4]") \ 122962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##dff0001) " @ ldc"two"l 0, cr0, [r15, #4]!") \ 123062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##d7f0001) " @ ldc"two"l 0, cr0, [r15, #-4]!") \ 123162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##cff0001) " @ ldc"two"l 0, cr0, [r15], #4") \ 123262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c7f0001) " @ ldc"two"l 0, cr0, [r15], #-4") \ 123362306a36Sopenharmony_ci TEST_COPROCESSOR( "ldc"two"l p0, cr0, [r15], {1}") 123462306a36Sopenharmony_ci 123562306a36Sopenharmony_ci#define COPROCESSOR_INSTRUCTIONS_MC_MR(two,cc) \ 123662306a36Sopenharmony_ci \ 123762306a36Sopenharmony_ci TEST_COPROCESSOR( "mcrr"two" p0, 15, r0, r14, cr0") \ 123862306a36Sopenharmony_ci TEST_COPROCESSOR( "mcrr"two" p15, 0, r14, r0, cr15") \ 123962306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c4f00f0) " @ mcrr"two" 0, 15, r0, r15, cr0") \ 124062306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c40ff0f) " @ mcrr"two" 15, 0, r15, r0, cr15") \ 124162306a36Sopenharmony_ci TEST_COPROCESSOR( "mrrc"two" p0, 15, r0, r14, cr0") \ 124262306a36Sopenharmony_ci TEST_COPROCESSOR( "mrrc"two" p15, 0, r14, r0, cr15") \ 124362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c5f00f0) " @ mrrc"two" 0, 15, r0, r15, cr0") \ 124462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0x##cc##c50ff0f) " @ mrrc"two" 15, 0, r15, r0, cr15") \ 124562306a36Sopenharmony_ci TEST_COPROCESSOR( "cdp"two" p15, 15, cr15, cr15, cr15, 7") \ 124662306a36Sopenharmony_ci TEST_COPROCESSOR( "cdp"two" p0, 0, cr0, cr0, cr0, 0") \ 124762306a36Sopenharmony_ci TEST_COPROCESSOR( "mcr"two" p15, 7, r15, cr15, cr15, 7") \ 124862306a36Sopenharmony_ci TEST_COPROCESSOR( "mcr"two" p0, 0, r0, cr0, cr0, 0") \ 124962306a36Sopenharmony_ci TEST_COPROCESSOR( "mrc"two" p15, 7, r14, cr15, cr15, 7") \ 125062306a36Sopenharmony_ci TEST_COPROCESSOR( "mrc"two" p0, 0, r0, cr0, cr0, 0") 125162306a36Sopenharmony_ci 125262306a36Sopenharmony_ci COPROCESSOR_INSTRUCTIONS_ST_LD("",e) 125362306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 5 125462306a36Sopenharmony_ci COPROCESSOR_INSTRUCTIONS_MC_MR("",e) 125562306a36Sopenharmony_ci#endif 125662306a36Sopenharmony_ci TEST_UNSUPPORTED("svc 0") 125762306a36Sopenharmony_ci TEST_UNSUPPORTED("svc 0xffffff") 125862306a36Sopenharmony_ci 125962306a36Sopenharmony_ci TEST_UNSUPPORTED("svc 0") 126062306a36Sopenharmony_ci 126162306a36Sopenharmony_ci TEST_GROUP("Unconditional instruction") 126262306a36Sopenharmony_ci 126362306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 126462306a36Sopenharmony_ci TEST_UNSUPPORTED("srsda sp, 0x13") 126562306a36Sopenharmony_ci TEST_UNSUPPORTED("srsdb sp, 0x13") 126662306a36Sopenharmony_ci TEST_UNSUPPORTED("srsia sp, 0x13") 126762306a36Sopenharmony_ci TEST_UNSUPPORTED("srsib sp, 0x13") 126862306a36Sopenharmony_ci TEST_UNSUPPORTED("srsda sp!, 0x13") 126962306a36Sopenharmony_ci TEST_UNSUPPORTED("srsdb sp!, 0x13") 127062306a36Sopenharmony_ci TEST_UNSUPPORTED("srsia sp!, 0x13") 127162306a36Sopenharmony_ci TEST_UNSUPPORTED("srsib sp!, 0x13") 127262306a36Sopenharmony_ci 127362306a36Sopenharmony_ci TEST_UNSUPPORTED("rfeda sp") 127462306a36Sopenharmony_ci TEST_UNSUPPORTED("rfedb sp") 127562306a36Sopenharmony_ci TEST_UNSUPPORTED("rfeia sp") 127662306a36Sopenharmony_ci TEST_UNSUPPORTED("rfeib sp") 127762306a36Sopenharmony_ci TEST_UNSUPPORTED("rfeda sp!") 127862306a36Sopenharmony_ci TEST_UNSUPPORTED("rfedb sp!") 127962306a36Sopenharmony_ci TEST_UNSUPPORTED("rfeia sp!") 128062306a36Sopenharmony_ci TEST_UNSUPPORTED("rfeib sp!") 128162306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf81d0a00) " @ rfeda pc") 128262306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf91d0a00) " @ rfedb pc") 128362306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf89d0a00) " @ rfeia pc") 128462306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf99d0a00) " @ rfeib pc") 128562306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf83d0a00) " @ rfeda pc!") 128662306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf93d0a00) " @ rfedb pc!") 128762306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf8bd0a00) " @ rfeia pc!") 128862306a36Sopenharmony_ci TEST_UNSUPPORTED(__inst_arm(0xf9bd0a00) " @ rfeib pc!") 128962306a36Sopenharmony_ci#endif /* __LINUX_ARM_ARCH__ >= 6 */ 129062306a36Sopenharmony_ci 129162306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 129262306a36Sopenharmony_ci TEST_X( "blx __dummy_thumb_subroutine_even", 129362306a36Sopenharmony_ci ".thumb \n\t" 129462306a36Sopenharmony_ci ".space 4 \n\t" 129562306a36Sopenharmony_ci ".type __dummy_thumb_subroutine_even, %%function \n\t" 129662306a36Sopenharmony_ci "__dummy_thumb_subroutine_even: \n\t" 129762306a36Sopenharmony_ci "mov r0, pc \n\t" 129862306a36Sopenharmony_ci "bx lr \n\t" 129962306a36Sopenharmony_ci ".arm \n\t" 130062306a36Sopenharmony_ci ) 130162306a36Sopenharmony_ci TEST( "blx __dummy_thumb_subroutine_even") 130262306a36Sopenharmony_ci 130362306a36Sopenharmony_ci TEST_X( "blx __dummy_thumb_subroutine_odd", 130462306a36Sopenharmony_ci ".thumb \n\t" 130562306a36Sopenharmony_ci ".space 2 \n\t" 130662306a36Sopenharmony_ci ".type __dummy_thumb_subroutine_odd, %%function \n\t" 130762306a36Sopenharmony_ci "__dummy_thumb_subroutine_odd: \n\t" 130862306a36Sopenharmony_ci "mov r0, pc \n\t" 130962306a36Sopenharmony_ci "bx lr \n\t" 131062306a36Sopenharmony_ci ".arm \n\t" 131162306a36Sopenharmony_ci ) 131262306a36Sopenharmony_ci TEST( "blx __dummy_thumb_subroutine_odd") 131362306a36Sopenharmony_ci#endif /* __LINUX_ARM_ARCH__ >= 6 */ 131462306a36Sopenharmony_ci 131562306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 5 131662306a36Sopenharmony_ci COPROCESSOR_INSTRUCTIONS_ST_LD("2",f) 131762306a36Sopenharmony_ci#endif 131862306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 131962306a36Sopenharmony_ci COPROCESSOR_INSTRUCTIONS_MC_MR("2",f) 132062306a36Sopenharmony_ci#endif 132162306a36Sopenharmony_ci 132262306a36Sopenharmony_ci TEST_GROUP("Miscellaneous instructions, memory hints, and Advanced SIMD instructions") 132362306a36Sopenharmony_ci 132462306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 6 132562306a36Sopenharmony_ci TEST_UNSUPPORTED("cps 0x13") 132662306a36Sopenharmony_ci TEST_UNSUPPORTED("cpsie i") 132762306a36Sopenharmony_ci TEST_UNSUPPORTED("cpsid i") 132862306a36Sopenharmony_ci TEST_UNSUPPORTED("cpsie i,0x13") 132962306a36Sopenharmony_ci TEST_UNSUPPORTED("cpsid i,0x13") 133062306a36Sopenharmony_ci TEST_UNSUPPORTED("setend le") 133162306a36Sopenharmony_ci TEST_UNSUPPORTED("setend be") 133262306a36Sopenharmony_ci#endif 133362306a36Sopenharmony_ci 133462306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 133562306a36Sopenharmony_ci TEST_P("pli [r",0,0b,", #16]") 133662306a36Sopenharmony_ci TEST( "pli [pc, #0]") 133762306a36Sopenharmony_ci TEST_RR("pli [r",12,0b,", r",0, 16,"]") 133862306a36Sopenharmony_ci TEST_RR("pli [r",0, 0b,", -r",12,16,", lsl #4]") 133962306a36Sopenharmony_ci#endif 134062306a36Sopenharmony_ci 134162306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 5 134262306a36Sopenharmony_ci TEST_P("pld [r",0,32,", #-16]") 134362306a36Sopenharmony_ci TEST( "pld [pc, #0]") 134462306a36Sopenharmony_ci TEST_PR("pld [r",7, 24, ", r",0, 16,"]") 134562306a36Sopenharmony_ci TEST_PR("pld [r",8, 24, ", -r",12,16,", lsl #4]") 134662306a36Sopenharmony_ci#endif 134762306a36Sopenharmony_ci 134862306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 134962306a36Sopenharmony_ci TEST_SUPPORTED( __inst_arm(0xf590f000) " @ pldw [r0, #0]") 135062306a36Sopenharmony_ci TEST_SUPPORTED( __inst_arm(0xf797f000) " @ pldw [r7, r0]") 135162306a36Sopenharmony_ci TEST_SUPPORTED( __inst_arm(0xf798f18c) " @ pldw [r8, r12, lsl #3]"); 135262306a36Sopenharmony_ci#endif 135362306a36Sopenharmony_ci 135462306a36Sopenharmony_ci#if __LINUX_ARM_ARCH__ >= 7 135562306a36Sopenharmony_ci TEST_UNSUPPORTED("clrex") 135662306a36Sopenharmony_ci TEST_UNSUPPORTED("dsb") 135762306a36Sopenharmony_ci TEST_UNSUPPORTED("dmb") 135862306a36Sopenharmony_ci TEST_UNSUPPORTED("isb") 135962306a36Sopenharmony_ci#endif 136062306a36Sopenharmony_ci 136162306a36Sopenharmony_ci verbose("\n"); 136262306a36Sopenharmony_ci} 136362306a36Sopenharmony_ci 1364