Skip to content

Commit

Permalink
Reorganize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Dec 13, 2023
1 parent ee22760 commit 5b91bed
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 141 deletions.
59 changes: 0 additions & 59 deletions llvm/test/CodeGen/SBF/neg_instr_with_sub.ll

This file was deleted.

39 changes: 39 additions & 0 deletions llvm/test/CodeGen/SBF/sub_reversed_immediate.ll
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
; RUN: llc < %s -march=sbf -mattr=+alu32 | FileCheck %s


; Function Attrs: norecurse nounwind readnone
define dso_local i64 @sub_ri_64(i64 %a) #0 {
entry:
; CHECK-LABEL: sub_ri_64:
%sub = sub nsw i64 50, %a
; CHECK: sub64 r{{[0-9]+}}, 50
ret i64 %sub
}

; Function Attrs: norecurse nounwind readnone
define dso_local i32 @sub_ri_32(i32 %a) #0 {
entry:
; CHECK-LABEL: sub_ri_32:
%sub = sub nsw i32 50, %a
; CHECK: sub32 w{{[0-9]+}}, 50
ret i32 %sub
}


; Function Attrs: norecurse nounwind readnone
define dso_local i64 @neg_64(i64 %a) #0 {
entry:
; CHECK-LABEL: neg_64:
%sub = sub nsw i64 0, %a
; CHECK: sub64 r{{[0-9]+}}, 0
ret i64 %sub
}

; Function Attrs: norecurse nounwind readnone
define dso_local i32 @neg_32(i32 %a) #0 {
entry:
; CHECK-LABEL: neg_32:
%sub = sub nsw i32 0, %a
; CHECK: sub32 w{{[0-9]+}}, 0
ret i32 %sub
}
82 changes: 0 additions & 82 deletions llvm/test/CodeGen/SBF/sub_reversed_immidiate.ll

This file was deleted.

0 comments on commit 5b91bed

Please sign in to comment.