Skip to content

Commit 8899b9b

Browse files
svs-quickrishna2803
authored andcommitted
[Hexagon] Add nounwind to hexagon-strcpy.ll (llvm#151293)
The test does not check for anything related to cfi information so we don't really need them in the test checks. Also it looks like there were some failures on the Alpine Linux builders due to the placement of the cfi information in the output assembly. I have also changed `-march` to `-mtriple` in the run line similar to 2208c97
1 parent f185be8 commit 8899b9b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

llvm/test/CodeGen/Hexagon/hexagon-strcpy.ll

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2-
; RUN: llc -march=hexagon -verify-machineinstrs < %s | FileCheck %s
2+
; RUN: llc -mtriple=hexagon -verify-machineinstrs < %s | FileCheck %s
33

44
@.str = private unnamed_addr constant [31 x i8] c"DHRYSTONE PROGRAM, 3'RD STRING\00", align 1
55
@.str1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1
66

7-
; Function Attrs: nounwind
87
declare i32 @printf(i8* nocapture readonly, ...)
98

109
; Function Attrs: nounwind
11-
define i32 @main() {
10+
define i32 @main() nounwind {
1211
; CHECK-LABEL: main:
13-
; CHECK: .cfi_startproc
14-
; CHECK-NEXT: // %bb.0: // %entry
15-
; CHECK-NEXT: .cfi_def_cfa r30, 8
16-
; CHECK-NEXT: .cfi_offset r31, -4
17-
; CHECK-NEXT: .cfi_offset r30, -8
12+
; CHECK: // %bb.0: // %entry
1813
; CHECK-NEXT: {
1914
; CHECK-NEXT: r0 = ##.L.str1
2015
; CHECK-NEXT: r3:2 = CONST64(#2325073635944967245)
@@ -53,5 +48,4 @@ entry:
5348
ret i32 0
5449
}
5550

56-
; Function Attrs: nounwind
5751
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture readonly, i32, i32, i1)

0 commit comments

Comments
 (0)