[LLVM][IR] Use splat syntax when printing ConstantExpr based splats. (#116856)
[llvm-project.git] / clang / test / CodeGen / LoongArch / lasx / inline-asm-operand-modifier.c
bloba5cc8798fd66b88032a7a59ca4ef73d7abdf256b
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 v4i64 __attribute__ ((vector_size(32), aligned(32)));
6 // CHECK-LABEL: define dso_local void @test_u
7 // CHECK-SAME: () local_unnamed_addr #[[ATTR0:[0-9]+]] {
8 // CHECK-NEXT: entry:
9 // CHECK-NEXT: [[TMP0:%.*]] = tail call <4 x i64> asm sideeffect "xvldi ${0:u}, 1", "=f"() #[[ATTR1:[0-9]+]], !srcloc !2
10 // CHECK-NEXT: ret void
12 void test_u() {
13 v4i64 v4i64_r;
14 asm volatile ("xvldi %u0, 1" : "=f" (v4i64_r));