aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/test/code_SUITE.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kernel/test/code_SUITE.erl')
-rw-r--r--lib/kernel/test/code_SUITE.erl9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/kernel/test/code_SUITE.erl b/lib/kernel/test/code_SUITE.erl
index 96f8ff2c5f..237f1c46b6 100644
--- a/lib/kernel/test/code_SUITE.erl
+++ b/lib/kernel/test/code_SUITE.erl
@@ -489,7 +489,11 @@ upgrade(Config) ->
T = case erlang:system_info(hipe_architecture) of
undefined -> [beam];
- _ -> [beam,hipe]
+ _ ->
+ case hipe:llvm_support_available() of
+ false -> [beam,hipe];
+ true -> [beam,hipe,hipe_llvm]
+ end
end,
[upgrade_do(DataDir, Client, T) || Client <- T],
@@ -514,7 +518,8 @@ compile_load(Mod, Dir, Ver, CodeType) ->
end,
Target = case CodeType of
beam -> [];
- hipe -> [native]
+ hipe -> [native];
+ hipe_llvm -> [native,{hipe,to_llvm}]
end,
CompOpts = [binary, report] ++ Target ++ Version,