-
Notifications
You must be signed in to change notification settings - Fork 14.4k
[SelectionDAG] Legalize <1 x T> vector types for atomic load #111414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9b0a33b
aba2a03
10b57a1
a95ff19
d9d4a1c
78ec95b
009b140
f99ae71
b738e03
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,14 +1,15 @@ | ||||
; RUN: not opt -passes=verify < %s 2>&1 | FileCheck %s | ||||
; CHECK: atomic store operand must have integer, pointer, floating point, or vector type! | ||||
; CHECK: atomic load operand must have integer, pointer, floating point, or vector type! | ||||
|
||||
; CHECK: atomic store operand must have integer, pointer, or floating point type! | ||||
; CHECK: atomic load operand must have integer, pointer, or floating point type! | ||||
%ty = type { i32 }; | ||||
|
||||
define void @foo(ptr %P, <1 x i64> %v) { | ||||
store atomic <1 x i64> %v, ptr %P unordered, align 8 | ||||
define void @foo(ptr %P, %ty %v) { | ||||
store atomic %ty %v, ptr %P unordered, align 8 | ||||
ret void | ||||
} | ||||
|
||||
define <1 x i64> @bar(ptr %P) { | ||||
%v = load atomic <1 x i64>, ptr %P unordered, align 8 | ||||
ret <1 x i64> %v | ||||
define %ty @bar(ptr %P) { | ||||
%v = load atomic %ty, ptr %P unordered, align 8 | ||||
ret %ty %v | ||||
} | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please can you add <1 x i64> load/store test coverage some place There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also pointers (including the 32-bit addrspace on x86-64 case which is some high number) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add atomic load extension test coverage?