Skip to content

Commit fae4fc6

Browse files
committed
Delete unportable rule
1 parent e8baebb commit fae4fc6

3 files changed

Lines changed: 0 additions & 14 deletions

File tree

rules/builtin/ir_unsafe.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,6 @@
8181
"type": "bool"
8282
}
8383
},
84-
"f11": {
85-
"body": [
86-
{
87-
"text": "std::hint::spin_loop()"
88-
}
89-
]
90-
},
9184
"f2": {
9285
"body": [
9386
{

rules/builtin/src.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,3 @@ int f7(unsigned long x) { return __builtin_ctzl(x); }
2323
int f8(unsigned long x) { return __builtin_popcountl(x); }
2424
bool f9(long a, long b, long *r) { return __builtin_mul_overflow(a, b, r); }
2525
bool f10(long long a, long long b, long long *r) { return __builtin_mul_overflow(a, b, r); }
26-
#if defined(__x86_64__) || defined(__i386__)
27-
void f11() { return __builtin_ia32_pause(); }
28-
#endif

rules/builtin/tgt_unsafe.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,3 @@ unsafe fn f10(a0: i64, a1: i64, a2: *mut i64) -> bool {
3535
*a2 = val;
3636
ovf
3737
}
38-
#[cfg(any(target_arch = "x86_64", target_arch = "x86"))]
39-
unsafe fn f11() {
40-
std::hint::spin_loop()
41-
}

0 commit comments

Comments
 (0)