Skip to content

Commit

Permalink
Skip cpuid shim when inline asm support is enabled
Browse files Browse the repository at this point in the history
cg_clif should support enough simd intrinsics now to not need almost all
cpu features to be force disabled. In addition they can't be disabled
anyway when using a sysroot compiled by LLVM.
  • Loading branch information
bjorn3 committed Oct 6, 2023
1 parent e825497 commit 77958bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inline_asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ pub(crate) fn codegen_inline_asm<'tcx>(
) {
// FIXME add .eh_frame unwind info directives

if !template.is_empty() {
if !template.is_empty() && cfg!(not(feature = "inline_asm")) {
// Used by panic_abort
if template[0] == InlineAsmTemplatePiece::String("int $$0x29".to_string()) {
fx.bcx.ins().trap(TrapCode::User(1));
Expand Down

0 comments on commit 77958bc

Please sign in to comment.