llvm.org GIT mirror llvm / 31928df
Merging r196269: ------------------------------------------------------------------------ r196269 | jamesm | 2013-12-03 03:23:11 -0800 (Tue, 03 Dec 2013) | 5 lines Addrspacecasts are no-ops on ARM. Testcase added. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_34@196651 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 6 years ago
2 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
361361 /// getMaximalGlobalOffset - Returns the maximal possible offset which can
362362 /// be used for loads / stores from the global.
363363 virtual unsigned getMaximalGlobalOffset() const;
364
365 /// Returns true if a cast between SrcAS and DestAS is a noop.
366 virtual bool isNoopAddrSpaceCast(unsigned SrcAS, unsigned DestAS) const {
367 // Addrspacecasts are always noops.
368 return true;
369 }
364370
365371 /// createFastISel - This method returns a target specific FastISel object,
366372 /// or null if the target does not support "fast" ISel.
0 ; RUN: llc < %s -march=arm
1
2 ; Check that codegen for an addrspace cast succeeds without error.
3 define <4 x i32 addrspace(1)*> @f (<4 x i32*> %x) {
4 %1 = addrspacecast <4 x i32*> %x to <4 x i32 addrspace(1)*>
5 ret <4 x i32 addrspace(1)*> %1
6 }