[GenericDomTree][NFC] Remove unnecessary `const_cast`s (#97638)
[llvm-project.git] / clang / test / CodeGen / LoongArch / lsx / inline-asm-operand-modifier.c
blob5e0fae984134ef7a6976d5200e85b56f122a32b2
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 2
2 // RUN: %clang_cc1 -triple loongarch64 -emit-llvm -O2 %s -o - | FileCheck %s
4 typedef long long v2i64 __attribute__ ((vector_size(16), aligned(16)));
6 // CHECK-LABEL: define dso_local void @test_w
7 // CHECK-SAME: () local_unnamed_addr #[[ATTR0:[0-9]+]] {
8 // CHECK-NEXT: entry:
9 // CHECK-NEXT: [[TMP0:%.*]] = tail call <2 x i64> asm sideeffect "vldi ${0:w}, 1", "=f"() #[[ATTR1:[0-9]+]], !srcloc !2
10 // CHECK-NEXT: ret void
12 void test_w() {
13 v2i64 v2i64_r;
14 asm volatile ("vldi %w0, 1" : "=f" (v2i64_r));