Skip to content

Commit

Permalink
Fix inline assembly test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 27, 2024
1 parent fe7321d commit e2b0662
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions tests/assembly/asm/xtensa-types.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// min-llvm-version: 10.0.1
// assembly-output: emit-asm
// compile-flags: --target xtensa-esp32-none-elf
// needs-llvm-components: xtensa
//@ assembly-output: emit-asm
//@ compile-flags: --target xtensa-esp32-none-elf
//@ needs-llvm-components: xtensa

#![feature(no_core, lang_items, rustc_attrs, repr_simd)]
#![feature(no_core, lang_items, rustc_attrs, repr_simd, asm_experimental_arch)]
#![crate_type = "rlib"]
#![no_core]
#![allow(asm_sub_register, non_camel_case_types)]
Expand Down Expand Up @@ -68,25 +67,25 @@ macro_rules! check_general_reg {

// CHECK-LABEL: reg_i8:
// CHECK: #APP
// CHECK: mov a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: or a{{[0-9]+}}, a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: #NO_APP
check_general_reg!(reg_i8 i8 reg "mov");

// CHECK-LABEL: reg_i16:
// CHECK: #APP
// CHECK: mov a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: or a{{[0-9]+}}, a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: #NO_APP
check_general_reg!(reg_i16 i16 reg "mov");

// CHECK-LABEL: reg_i32:
// CHECK: #APP
// CHECK: mov a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: or a{{[0-9]+}}, a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: #NO_APP
check_general_reg!(reg_i32 i32 reg "mov");

// CHECK-LABEL: reg_ptr:
// CHECK: #APP
// CHECK: mov a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: or a{{[0-9]+}}, a{{[0-9]+}}, a{{[0-9]+}}
// CHECK: #NO_APP
check_general_reg!(reg_ptr ptr reg "mov");

Expand All @@ -111,25 +110,25 @@ macro_rules! check_explicit_reg {

// CHECK-LABEL: a5_i8:
// CHECK: #APP
// CHECK: mov a5, a5
// CHECK: or a5, a5, a5
// CHECK: #NO_APP
check_explicit_reg!(a5_i8 i8 "a5" "mov");

// CHECK-LABEL: a5_i16:
// CHECK: #APP
// CHECK: mov a5, a5
// CHECK: or a5, a5, a5
// CHECK: #NO_APP
check_explicit_reg!(a5_i16 i16 "a5" "mov");

// CHECK-LABEL: a0_i32:
// CHECK-LABEL: a5_i32:
// CHECK: #APP
// CHECK: mov a5, a5
// CHECK: or a5, a5, a5
// CHECK: #NO_APP
check_explicit_reg!(a5_i32 i32 "a5" "mov");

// CHECK-LABEL: a5_ptr:
// CHECK: #APP
// CHECK: mov a5, a5
// CHECK: or a5, a5, a5
// CHECK: #NO_APP
check_explicit_reg!(a5_ptr ptr "a5" "mov");

Expand Down

0 comments on commit e2b0662

Please sign in to comment.