Skip to content

Commit

Permalink
Fix pass builder pass name for linux-aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
e3m3 committed Sep 14, 2024
1 parent 9672ed6 commit bc0de76
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl PassBuilder {
opt_level: OptLevel,
no_target: bool,
) -> bool {
let passes: String = format!("default<{}>", opt_level_to_str(opt_level));
let passes: String = format!("default<{}>\0", opt_level_to_str(opt_level));
unsafe {
if !no_target {
LLVMSetModuleDataLayout(bundle.module, machine.data_layout);
Expand Down
2 changes: 0 additions & 2 deletions tests/lit-llvm/codegen_type.calc
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@
// CHECK_B: Bytecode file type (missing '-S' flag) should match output name ('.bc' extension)

// CHECK_C-NOT: ^0

// XFAIL: ARCH_AARCH64 && OS_LINUX
1 change: 0 additions & 1 deletion tests/lit-llvm/end_to_end1.calc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
// CHECK: calcc_main result: 4096

// XFAIL: ARCH_AARCH64 && OS_MACOS
// XFAIL: ARCH_AARCH64 && OS_LINUX
1 change: 0 additions & 1 deletion tests/lit-llvm/end_to_end2.calc
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,3 @@
// CHECK_F: calcc_main result: 0

// XFAIL: ARCH_AARCH64 && OS_MACOS
// XFAIL: ARCH_AARCH64 && OS_LINUX
1 change: 0 additions & 1 deletion tests/lit-llvm/input_file1.calc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
with: a,b,c: c*c - (a*a + b*b)

// XFAIL: ARCH_AARCH64 && OS_MACOS
// XFAIL: ARCH_AARCH64 && OS_LINUX
2 changes: 0 additions & 2 deletions tests/lit-llvm/irgen1.calc
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,3 @@
// CHECK: %v3 = add nsw i64 %v2, 10
// CHECK: ret i64 %v3
// CHECK: }

// XFAIL: ARCH_AARCH64 && OS_LINUX
2 changes: 0 additions & 2 deletions tests/lit-llvm/irgen2.calc
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,3 @@
// CHECK-LABEL: entry:
// CHECK: ret i64 4096
// CHECK: }

// XFAIL: ARCH_AARCH64 && OS_LINUX
2 changes: 0 additions & 2 deletions tests/lit-llvm/maingen1.calc
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,3 @@
// CHECK: %v3 = add nsw i64 %v2, 10
// CHECK: ret i64 %v3
// CHECK: }

// XFAIL: ARCH_AARCH64 && OS_LINUX
2 changes: 0 additions & 2 deletions tests/lit-llvm/maingen2.calc
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,3 @@
// CHECK-LABEL: entry:
// CHECK: ret i64 4096
// CHECK: }

// XFAIL: ARCH_AARCH64 && OS_LINUX
2 changes: 0 additions & 2 deletions tests/lit-llvm/option_notarget.calc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,3 @@
// CHECK_NOTARGET-LABEL: entry:
// CHECK_NOTARGET: ret i64 4096
// CHECK_NOTARGET: }

// XFAIL: ARCH_AARCH64 && OS_LINUX
2 changes: 0 additions & 2 deletions tests/lit-llvm/option_opt.calc
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,3 @@
// CHECK_O1: %v[[REG:[0-9]+]] = shl nsw i64 %0, 5
// CHECK_O1: ret i64 %v[[REG]]
// CHECK_O1: }

// XFAIL: ARCH_AARCH64 && OS_LINUX

0 comments on commit bc0de76

Please sign in to comment.