Skip to content

Commit

Permalink
disasm-test: Make treatment of assumed parameters more precise
Browse files Browse the repository at this point in the history
This ensures that we do not run test cases with assumed `tasty-sugar`
parameters multiple times with later LLVM versions.
  • Loading branch information
RyanGlScott committed Apr 3, 2023
1 parent 01ffc19 commit 5e746c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion disasm-test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,11 @@ runTest llvmVer sweet expct
]
in case lookup "llvm-range" (TS.expParamsMatch expct) of
Just (TS.Explicit v) -> specMatchesInstalled v
Just (TS.Assumed v) -> specMatchesInstalled v
Just (TS.Assumed v)
| v == "pre-llvm11" || v == "at-least-llvm12"
-> specMatchesInstalled v
| otherwise
-> False
_ -> error "llvm-range unknown"

-- | Assemble some llvm assembly, producing a bitcode file in /tmp.
Expand Down

0 comments on commit 5e746c4

Please sign in to comment.