CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
// REQUIRES: arm-registered-target
|
|
// RUN: %clang_cc1 -triple armv6-unknown-unknown -emit-llvm -o - %s | FileCheck %s
|
|
|
|
void test0(void) {
|
|
asm volatile("mov r0, r0" :: );
|
|
}
|
|
void test1(void) {
|
|
asm volatile("mov r0, r0" :::
|
|
"cc", "memory" );
|
|
}
|
|
void test2(void) {
|
|
asm volatile("mov r0, r0" :::
|
|
"r0", "r1", "r2", "r3");
|
|
asm volatile("mov r0, r0" :::
|
|
"r4", "r5", "r6", "r8");
|
|
}
|
|
void test3(void) {
|
|
asm volatile("mov r0, r0" :::
|
|
"a1", "a2", "a3", "a4");
|
|
asm volatile("mov r0, r0" :::
|
|
"v1", "v2", "v3", "v5");
|
|
}
|
|
|
|
|
|
// {} should not be treated as asm variants.
|
|
void test4(float *a, float *b) {
|
|
// CHECK: @test4
|
|
// CHECK: call void asm sideeffect "vld1.32 {d8[],d9[]},
|
|
__asm__ volatile (
|
|
"vld1.32 {d8[],d9[]}, [%1,:32] \n\t"
|
|
"vst1.32 {q4}, [%0,:128] \n\t"
|
|
:: "r"(a), "r"(b));
|
|
}
|
|
|
|
// {sp, lr, pc} are the canonical names for {r13, r14, r15}.
|
|
//
|
|
// CHECK: @test5
|
|
// CHECK: call void asm sideeffect "", "~{sp},~{lr},~{pc},~{sp},~{lr},~{pc}"()
|
|
void test5() {
|
|
__asm__("" : : : "r13", "r14", "r15", "sp", "lr", "pc");
|
|
}
|
|
|
|
// CHECK: @test6
|
|
// CHECK: call void asm sideeffect "", "
|
|
// CHECK: ~{s0},~{s1},~{s2},~{s3},~{s4},~{s5},~{s6},~{s7},
|
|
// CHECK: ~{s8},~{s9},~{s10},~{s11},~{s12},~{s13},~{s14},~{s15},
|
|
// CHECK: ~{s16},~{s17},~{s18},~{s19},~{s20},~{s21},~{s22},~{s23},
|
|
// CHECK: ~{s24},~{s25},~{s26},~{s27},~{s28},~{s29},~{s30},~{s31}"()
|
|
void test6() {
|
|
__asm__("" : : :
|
|
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7",
|
|
"s8", "s9", "s10", "s11", "s12", "s13", "s14", "s15",
|
|
"s16", "s17", "s18", "s19", "s20", "s21", "s22", "s23",
|
|
"s24", "s25", "s26", "s27", "s28", "s29", "s30", "s31");
|
|
}
|