; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; RUN: opt -S -verify < %s 2>&1 | FileCheck %s ; Make sure we allow scalable vectors in structs for returning multiple ; values from intrinsics. declare { , } @llvm.sadd.with.overflow.nxv2i32(, ) define @foo( %x, %y) { ; CHECK-LABEL: @foo( ; CHECK-NEXT: [[A:%.*]] = call { , } @llvm.sadd.with.overflow.nxv2i32( [[X:%.*]], [[Y:%.*]]) ; CHECK-NEXT: [[B:%.*]] = extractvalue { , } [[A]], 0 ; CHECK-NEXT: ret [[B]] ; %a = call { , } @llvm.sadd.with.overflow.nxv2i32( %x, %y) %b = extractvalue { , } %a, 0 ret %b }