about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-09 16:26:02 +0200
committerGitHub <noreply@github.com>2023-10-09 16:26:02 +0200
commitea5cac02e8921e4e3aeb1830b68b88adc3898b27 (patch)
treea3ff5271ad7568876dc91bf94440b0c3623c24b2 /compiler/rustc_codegen_cranelift/example
parent148f5c1bdf974e7fc9504aef156016a4852e2053 (diff)
parent3ed37652593c188734b226dcecf920cee019961b (diff)
downloadrust-ea5cac02e8921e4e3aeb1830b68b88adc3898b27.tar.gz
rust-ea5cac02e8921e4e3aeb1830b68b88adc3898b27.zip
Rollup merge of #116556 - bjorn3:sync_cg_clif-2023-10-09, r=bjorn3
Sync rustc_codegen_cranelift

The highlights this time are improved simd and inline asm support, `is_x86_feature_detected!()` returning the actual cpu features when inline asm support is enabled and a couple of bug fixes.

r? ```@ghost```

```@rustbot``` label +A-codegen +A-cranelift +T-compiler +subtree-sync
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example')
-rw-r--r--compiler/rustc_codegen_cranelift/example/mini_core.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/example/mini_core.rs b/compiler/rustc_codegen_cranelift/example/mini_core.rs
index 34c7e44b288..934e4b1786f 100644
--- a/compiler/rustc_codegen_cranelift/example/mini_core.rs
+++ b/compiler/rustc_codegen_cranelift/example/mini_core.rs
@@ -685,6 +685,12 @@ pub macro cfg() {
 
 #[rustc_builtin_macro]
 #[rustc_macro_transparency = "semitransparent"]
+pub macro asm() {
+    /* compiler built-in */
+}
+
+#[rustc_builtin_macro]
+#[rustc_macro_transparency = "semitransparent"]
 pub macro global_asm() {
     /* compiler built-in */
 }