Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Four Codegen Tests #134626

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

veera-sivarajan
Copy link
Contributor

Closes #74615
Closes #123216
Closes #49572
Closes #93514

This PR adds four codegen tests. The FileCheck assertions were generated with the help of update_test_checks.py and update_llc_test_checks.py from the LLVM project.

@rustbot
Copy link
Collaborator

rustbot commented Dec 21, 2024

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 21, 2024
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup=iffy

@bors
Copy link
Contributor

bors commented Dec 26, 2024

📌 Commit 62fedef has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 26, 2024
@bors
Copy link
Contributor

bors commented Dec 27, 2024

⌛ Testing commit 62fedef with merge 655cf53...

bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 27, 2024
…r=Mark-Simulacrum

Add Four Codegen Tests

Closes rust-lang#74615
Closes rust-lang#123216
Closes rust-lang#49572
Closes rust-lang#93514

This PR adds four codegen tests. The FileCheck assertions were generated with the help of `update_test_checks.py` and `update_llc_test_checks.py` from the LLVM project.
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Dec 27, 2024

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Dec 27, 2024
@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 11, 2025

📌 Commit 0ec717b has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 11, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 12, 2025
…r=Mark-Simulacrum

Add Four Codegen Tests

Closes rust-lang#74615
Closes rust-lang#123216
Closes rust-lang#49572
Closes rust-lang#93514

This PR adds four codegen tests. The FileCheck assertions were generated with the help of `update_test_checks.py` and `update_llc_test_checks.py` from the LLVM project.
@bors
Copy link
Contributor

bors commented Jan 12, 2025

⌛ Testing commit 0ec717b with merge 159ccc2...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Jan 12, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 12, 2025
@veera-sivarajan
Copy link
Contributor Author

Apologies for the repeated attempts. Should be completely fixed now.

Thank you.

@Mark-Simulacrum
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 19, 2025

📌 Commit c00d7e2 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 19, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 19, 2025
…r=Mark-Simulacrum

Add Four Codegen Tests

Closes rust-lang#74615
Closes rust-lang#123216
Closes rust-lang#49572
Closes rust-lang#93514

This PR adds four codegen tests. The FileCheck assertions were generated with the help of `update_test_checks.py` and `update_llc_test_checks.py` from the LLVM project.
@bors
Copy link
Contributor

bors commented Jan 19, 2025

⌛ Testing commit c00d7e2 with merge 816104f...

@rust-log-analyzer
Copy link
Collaborator

The job armhf-gnu failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
test [codegen] tests/codegen/cfguard-non-msvc.rs ... ok
test [codegen] tests/codegen/char-ascii-branchless.rs ... ok
test [codegen] tests/codegen/checked_ilog.rs ... ok
test [codegen] tests/codegen/checked_math.rs ... ok
test [codegen] tests/codegen/classify-fp-category-of-usize-without-branch.rs ... FAILED
test [codegen] tests/codegen/codemodels.rs#MODEL-LARGE ... ignored, only executed when the architecture is x86_64
test [codegen] tests/codegen/codemodels.rs#MODEL-MEDIUM ... ignored, only executed when the architecture is x86_64
test [codegen] tests/codegen/codemodels.rs#MODEL-SMALL ... ignored, only executed when the architecture is x86_64
test [codegen] tests/codegen/codemodels.rs#NOMODEL ... ignored, only executed when the architecture is x86_64
---
test [codegen] tests/codegen/zip.rs ... ok

failures:

---- [codegen] tests/codegen/classify-fp-category-of-usize-without-branch.rs stdout ----

error: verification with 'FileCheck' failed
status: exit status: 1
command: "/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" "--input-file" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen/classify-fp-category-of-usize-without-branch/classify-fp-category-of-usize-without-branch.ll" "/checkout/tests/codegen/classify-fp-category-of-usize-without-branch.rs" "--check-prefix=CHECK" "--allow-unused-prefixes" "--dump-input-context" "100"
--- stderr -------------------------------
--- stderr -------------------------------
/checkout/tests/codegen/classify-fp-category-of-usize-without-branch.rs:26:12: error: CHECK: expected string not found in input
 // CHECK: [[TMP0:%.*]] = tail call
           ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen/classify-fp-category-of-usize-without-branch/classify-fp-category-of-usize-without-branch.ll:7:78: note: scanning from here
define noundef zeroext i1 @complex_test(i32 noundef %input) unnamed_addr #0 {
                                                                             ^
/checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen/classify-fp-category-of-usize-without-branch/classify-fp-category-of-usize-without-branch.ll:33:82: note: possible intended match here
; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable


Input file: /checkout/obj/build/x86_64-unknown-linux-gnu/test/codegen/classify-fp-category-of-usize-without-branch/classify-fp-category-of-usize-without-branch.ll
Check file: /checkout/tests/codegen/classify-fp-category-of-usize-without-branch.rs

-dump-input=help explains the following input dump.
Input was:
<<<<<<
<<<<<<
            1: ; ModuleID = 'classify_fp_category_of_usize_without_branch.126dbdb42f0b9381-cgu.0' 
            2: source_filename = "classify_fp_category_of_usize_without_branch.126dbdb42f0b9381-cgu.0" 
            3: target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64" 
            4: target triple = "arm-unknown-linux-gnueabihf" 
            5:  
            6: ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable 
            7: define noundef zeroext i1 @complex_test(i32 noundef %input) unnamed_addr #0 { 
check:26'0                                                                                  X error: no match found
check:26'0     ~~~~~~~
check:26'0     ~~~~~~~
            9:  switch i32 %input, label %bb2 [ 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           10:  i32 128, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~
           11:  i32 1, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~
           12:  i32 64, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~~
           13:  i32 2, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~
           14:  i32 32, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~~
           15:  i32 4, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~
           16:  i32 16, label %bb4 
check:26'0     ~~~~~~~~~~~~~~~~~~~~
           17:  i32 8, label %bb4 
check:26'0     ~~~~~~~~~~~~~~~~~~~
           18:  i32 256, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~
           19:  i32 512, label %bb1 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~
           20:  ] 
check:26'0     ~~~
check:26'0     ~
check:26'0     ~
           22: bb2: ; preds = %start 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~~
           23:  unreachable 
check:26'0     ~~~~~~~~~~~~~
check:26'0     ~
check:26'0     ~
           25: bb4: ; preds = %start, %start 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           26:  br label %bb1 
check:26'0     ~~~~~~~~~~~~~~~
check:26'0     ~
check:26'0     ~
           28: bb1: ; preds = %start, %start, %start, %start, %start, %start, %start, %start, %bb4 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           29:  %_0 = phi i1 [ true, %bb4 ], [ false, %start ], [ false, %start ], [ false, %start ], [ false, %start ], [ false, %start ], [ false, %start ], [ false, %start ], [ false, %start ] 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           30:  ret i1 %_0 
check:26'0     ~~~~~~~~~~~~
           31: } 
check:26'0     ~~
check:26'0     ~
check:26'0     ~
           33: ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:26'1                                                                                      ?               possible intended match
           34: define noundef zeroext i1 @simpler_test(i32 noundef %input) unnamed_addr #0 { 
check:26'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           35: start: 
           36:  %0 = add i32 %input, -8 
           37:  %switch.and = and i32 %0, -9 
           38:  %switch.selectcmp = icmp eq i32 %switch.and, 0 
           39:  ret i1 %switch.selectcmp 
           40: } 
           41:  
           42: attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable "target-cpu"="generic" "target-features"="+strict-align,+v6,+vfp2,-d32,+fpregs,-soft-float" } 
           43:  
           44: !llvm.module.flags = !{!0} 
           45: !llvm.ident = !{!1} 
           46:  
           47: !0 = !{i32 8, !"PIC Level", i32 2} 
           48: !1 = !{!"rustc version 1.86.0-nightly (816104fec 2025-01-19)"} 
------------------------------------------




failures:
    [codegen] tests/codegen/classify-fp-category-of-usize-without-branch.rs
test result: FAILED. 608 passed; 1 failed; 197 ignored; 0 measured; 0 filtered out; finished in 12.18s

Some tests failed in compiletest suite=codegen mode=codegen host=x86_64-unknown-linux-gnu target=arm-unknown-linux-gnueabihf
Build completed unsuccessfully in 0:51:01

@bors
Copy link
Contributor

bors commented Jan 19, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
6 participants