llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Some atomic max/umax/min/umin intrinsics are not supported on X86 platform

Open baremetaldude opened this issue 17 years ago • 1 comments

Bugzilla Link 5145
Resolution FIXED
Resolved on Sep 20, 2012 22:26
Version trunk
OS Windows NT
CC @asl,@darkbuck

Extended Description

I tried max/min atomic operations on x86 platform( win7 64-bit, intel q9450, 32-bit llvm tools) and following are not work:

@​llvm.atomic.load.max.i8.p0i8 @​llvm.atomic.load.max.i16.p0i16 @​llvm.atomic.load.max.i64.p0i64

@​llvm.atomic.load.umax.i8.p0i8 @​llvm.atomic.load.umax.i16.p0i16 @​llvm.atomic.load.umax.i64.p0i64

@​llvm.atomic.load.min.i8.p0i8 @​llvm.atomic.load.min.i16.p0i16 @​llvm.atomic.load.min.i64.p0i64

@​llvm.atomic.load.umin.i8.p0i8 @​llvm.atomic.load.umin.i16.p0i16 @​llvm.atomic.load.umin.i64.p0i64

For @​llvm.atomic.load.max.i8.p0i8 JIT prints something like this: LLVM ERROR: Cannot yet select: 0x4fdd438: i8,ch = AtomicLoadUMax 0x500bb40, 0x4fedf60, 0x4fdb4d0 <Volatile LDST1[%_byte]>

Are these intrisics supported on X86 architecture? If not, can you mention in docs which intrinsic support which platform (I find that add,sub,xor,or,and,nand,swap works with 8/16/32/64 bit widths, however docs said that "Not all targets support all bit widths however." for them and max/min intrinsics ).

baremetaldude avatar Oct 07 '09 12:10 baremetaldude

fixed in r164358.

darkbuck avatar Sep 21 '12 05:09 darkbuck