Skip to content

Commit 1eca69f

Browse files
committed
Update static_registration.sh
1 parent 01232a2 commit 1eca69f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

utils/static_registration.sh

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,20 +165,18 @@ update_mbasub_test()
165165
# These tabs will be suppressed when the command (i.e. cat) is executed.
166166
# That's thanks to the delimiter token, EOF, being prefixed with `-`.
167167
cat > file.diff <<-'EOF'
168+
define signext i32 @foo(i32 signext, i32 signext, i32 signext, i32 signext) {
169+
%5 = sub i32 %1, %0
168170
diff --git a/llvm/test/Examples/MBASub/MBA_sub.ll b/llvm/test/Examples/MBASub/MBA_sub.ll
169-
index 318394307f6a..761345dcd799 100644
171+
index c33a8b5..a031512 100644
170172
--- a/llvm/test/Examples/MBASub/MBA_sub.ll
171173
+++ b/llvm/test/Examples/MBASub/MBA_sub.ll
172-
@@ -1,7 +1,5 @@
173-
-; RUN: opt --enable-new-pm=0 -load %shlibdir/libMBASub%shlibext -legacy-mba-sub -S %s\
174-
-; RUN: | FileCheck %s
175-
-; RUN: opt -load-pass-plugin=%shlibdir/libMBASub%shlibext -passes="mba-sub" -S %s \
176-
-; RUN: | FileCheck %s
177-
+; RUN: opt --enable-new-pm=0 -legacy-mba-sub -S %s | FileCheck %s
178-
+; RUN: opt -passes="mba-sub" -S %s | FileCheck %s
179-
180-
define signext i32 @foo(i32 signext, i32 signext, i32 signext, i32 signext) {
181-
%5 = sub i32 %1, %0
174+
@@ -1,4 +1,4 @@
175+
-; RUN: opt -load-pass-plugin=%shlibdir/libMBASub%shlibext -passes="mba-sub" -S %s \
176+
+; RUN: opt -passes="mba-sub" -S %s \
177+
; RUN: | FileCheck %s
178+
179+
define signext i32 @foo(i32 signext, i32 signext, i32 signext, i32 signext) {
182180
EOF
183181

184182
patch -p1 < file.diff

0 commit comments

Comments
 (0)